1

Flutter audio service need to change the android:name like this

android:name="com.ryanheise.audioservice.AudioServiceActivity"

package and documation

Firebase Cloud Messaging also need to change the android:name like this

android:name=".Application"

package and documation

How can I make change to use both packages in my application?

Edited

Now I have solved the problem by upgrading flutter version but I would like to know how do I make change if I meet a situation like my question. If anyone has a solution for my question, let me know it please.

  • 1
    According to the last link, if you're setting the `android:name=".Application"` that means you're using Android embedding v1. Is there a reason why you can't use v2? Is it because you are pinned to an older Flutter version < 1.12 for some reason? – Ryan Heise Sep 06 '22 at 12:42
  • @RyanHeise Thank for comment! Yes, I see that it doesn't need other additional features for flutter v2. But I would like to know how do I make change if I meet a situation like my question. This project is dependent on flutter 1.7.0. Now I have upgraded to flutter 3.0.5. I have solved the problem but I still have this question. So I am asking in here. If you have a solution for my question, let me know it please. Thank! – Nring Cham Aung Sep 06 '22 at 13:12
  • The exact situation you describe in your question is already solved by yourself, because probably nobody should be using a version of Flutter older than 1.12. The answer is "upgrade"! You might want to consider writing up an answer to your question and marking it as the accepted answer. – Ryan Heise Sep 06 '22 at 13:18
  • As for the hypothetical question of whether you might run into a similar situation again, I think you should create a question with a specific example, because the answer will depend on the specifics. – Ryan Heise Sep 06 '22 at 13:20
  • Yes, but with a "hypothetical" question. I'm not answering that, like I just explained. My reply to you is therefore the same as before: (copy and paste): "As for the hypothetical question of whether you might run into a similar situation again, I think you should create a question with a specific example, because the answer will depend on the specifics." – Ryan Heise Sep 07 '22 at 10:56

0 Answers0