Marco Maria Vilucchi Active Member Licensed User Longtime User May 16, 2019 #1 Hi all, I have B4A 7.80 I read all thread about this error. I reinstall SDK and then I read this thread https://www.b4x.com/android/forum/t...ging-issue-with-v8-00-subscribetotopic.93423/ where Erel says that it's solved in v1.21 (of FirebaseNotification library?) and put this link https://www.b4x.com/android/forum/threads/updates-to-internal-libraries.59340/#post-591400 but in this link I don't find any version 1.21 and I have the problem too.... Someone can help me? Thanks
Hi all, I have B4A 7.80 I read all thread about this error. I reinstall SDK and then I read this thread https://www.b4x.com/android/forum/t...ging-issue-with-v8-00-subscribetotopic.93423/ where Erel says that it's solved in v1.21 (of FirebaseNotification library?) and put this link https://www.b4x.com/android/forum/threads/updates-to-internal-libraries.59340/#post-591400 but in this link I don't find any version 1.21 and I have the problem too.... Someone can help me? Thanks
DonManfred Expert Licensed User Longtime User May 16, 2019 #2 Firebase notification is a internal library. From the xml in the internal library folder. <version>1.21</version> Click to expand... I suggest to update your B4A. Upvote 0
Firebase notification is a internal library. From the xml in the internal library folder. <version>1.21</version> Click to expand... I suggest to update your B4A.
Marco Maria Vilucchi Active Member Licensed User Longtime User May 16, 2019 #3 I can't buy a new version whenever I have a bug.... Why can't I use v7.8? Upvote 0
DonManfred Expert Licensed User Longtime User May 16, 2019 #4 Contact [email protected] and ask to get a downloadlink for this jar. Maybe it is available in forum somewhere but i can´t remember if and where. In fact it is google who changed the SDK and the Library must be updated to work with the newest Mavenrepositories. Upvote 0
Contact [email protected] and ask to get a downloadlink for this jar. Maybe it is available in forum somewhere but i can´t remember if and where. In fact it is google who changed the SDK and the Library must be updated to work with the newest Mavenrepositories.
Erel B4X founder Staff member Licensed User Longtime User May 16, 2019 #5 Notifications will not work properly with B4A v7.8 as it will not handle the requirements added in Android 8+. See the targetSdkVersion tutorial for more information. The app will crash on Android 8+ devices when targetSdkVersion is set to 26. The latest version of the library is attached. Attachments FirebaseNotifications.zip FirebaseNotifications.zip 8.2 KB · Views: 596 Upvote 0
Notifications will not work properly with B4A v7.8 as it will not handle the requirements added in Android 8+. See the targetSdkVersion tutorial for more information. The app will crash on Android 8+ devices when targetSdkVersion is set to 26. The latest version of the library is attached.
Marco Maria Vilucchi Active Member Licensed User Longtime User May 16, 2019 #6 Thanks Erel, I install new version of firebaseNotifications, and I have sdk 28, but app craches again My tablet has Android 8.1. Need new version of B4a? Upvote 0
Thanks Erel, I install new version of firebaseNotifications, and I have sdk 28, but app craches again My tablet has Android 8.1. Need new version of B4a?
DonManfred Expert Licensed User Longtime User May 16, 2019 #7 Marco Maria Vilucchi said: but app craches again Click to expand... Where is the full error? Should we guess it? Upvote 0
Marco Maria Vilucchi said: but app craches again Click to expand... Where is the full error? Should we guess it?
Marco Maria Vilucchi Active Member Licensed User Longtime User May 16, 2019 #8 ** Activity (main) Resume ** *** Service (firebasemessaging) Create *** ** Service (firebasemessaging) Start ** firebasemessaging_subscribetotopics (java line: 253) java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.android.gms.tasks.Task com.google.firebase.iid.FirebaseInstanceId.zza(java.lang.String)' on a null object reference at com.google.firebase.messaging.FirebaseMessaging.subscribeToTopic(Unknown Source:15) at anywheresoftware.b4a.objects.FirebaseNotificationsService$FirebaseMessageWrapper.SubscribeToTopic(FirebaseNotificationsService.java:130) at com.mamavi.slimup.firebasemessaging._subscribetotopics(firebasemessaging.java:253) at java.lang.reflect.Method.invoke(Native Method) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:186) at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1135) at android.os.Handler.handleCallback(Handler.java:790) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:7000) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:441) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408) Upvote 0
** Activity (main) Resume ** *** Service (firebasemessaging) Create *** ** Service (firebasemessaging) Start ** firebasemessaging_subscribetotopics (java line: 253) java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.android.gms.tasks.Task com.google.firebase.iid.FirebaseInstanceId.zza(java.lang.String)' on a null object reference at com.google.firebase.messaging.FirebaseMessaging.subscribeToTopic(Unknown Source:15) at anywheresoftware.b4a.objects.FirebaseNotificationsService$FirebaseMessageWrapper.SubscribeToTopic(FirebaseNotificationsService.java:130) at com.mamavi.slimup.firebasemessaging._subscribetotopics(firebasemessaging.java:253) at java.lang.reflect.Method.invoke(Native Method) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:186) at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1135) at android.os.Handler.handleCallback(Handler.java:790) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:7000) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:441) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408)
Erel B4X founder Staff member Licensed User Longtime User May 16, 2019 #9 While you can probably fix this error, once you get it working the app will crash when it receives a message while it is in the background. You must use B4A v8+ with the automatic foreground mode feature. Upvote 0
While you can probably fix this error, once you get it working the app will crash when it receives a message while it is in the background. You must use B4A v8+ with the automatic foreground mode feature.
Marco Maria Vilucchi Active Member Licensed User Longtime User May 16, 2019 #10 hi, I've buyed and installed B4a v9.01.2. I have same error!!! What can I do? Upvote 0
DonManfred Expert Licensed User Longtime User May 16, 2019 #11 make sure NOT to have a firebasemessaging.jar and xml in your additional libs folder. Upvote 0
Marco Maria Vilucchi Active Member Licensed User Longtime User May 16, 2019 #12 no I haven't Upvote 0
DonManfred Expert Licensed User Longtime User May 16, 2019 #13 You have updated the manifest to use the new Snippets? Note that you are now using B4A 8+ and need other Snippets than in the past. Last edited: May 16, 2019 Upvote 0
You have updated the manifest to use the new Snippets? Note that you are now using B4A 8+ and need other Snippets than in the past.
Marco Maria Vilucchi Active Member Licensed User Longtime User May 16, 2019 #14 no I don't Where can I find new snippets? Upvote 0
DonManfred Expert Licensed User Longtime User May 16, 2019 #15 Reload the page and use the link i used. I do NOT search and post it again Note that we are talking about Firebaseintegration! So the firebaseintegrationtutorial should be the place to look for it, right? Do not check Google Map Tutorial or Bluetooth Tutorial. They will not help. Upvote 0
Reload the page and use the link i used. I do NOT search and post it again Note that we are talking about Firebaseintegration! So the firebaseintegrationtutorial should be the place to look for it, right? Do not check Google Map Tutorial or Bluetooth Tutorial. They will not help.
Marco Maria Vilucchi Active Member Licensed User Longtime User May 16, 2019 #16 Sorry, but for two days I can't work for this error.... I find snippets, I substitute the new (not added) but now I have this error Sorry again Last edited: May 16, 2019 Upvote 0
Sorry, but for two days I can't work for this error.... I find snippets, I substitute the new (not added) but now I have this error Sorry again
DonManfred Expert Licensed User Longtime User May 16, 2019 #17 You DID READ the error? You DID realized that you need the google-services.json in your projectfolder (as it was needed in the past!) but it is not there? Upvote 0
You DID READ the error? You DID realized that you need the google-services.json in your projectfolder (as it was needed in the past!) but it is not there?
Marco Maria Vilucchi Active Member Licensed User Longtime User May 16, 2019 #18 no ithis is an erroneus picture I have this Upvote 0
DonManfred Expert Licensed User Longtime User May 16, 2019 #19 How dfo you expect we could help you here with this LESS Infos you provide? Upload a small project which shows the issue. I´m out here: i´m not interested to further try to help. Theme.IAPTheme comes from admob. Are you using addmob and also added admob to your project? I guess yes as you are adding the Snippet for ADS. Upvote 0
How dfo you expect we could help you here with this LESS Infos you provide? Upload a small project which shows the issue. I´m out here: i´m not interested to further try to help. Theme.IAPTheme comes from admob. Are you using addmob and also added admob to your project? I guess yes as you are adding the Snippet for ADS.
Marco Maria Vilucchi Active Member Licensed User Longtime User May 16, 2019 #20 Ok I understand!!! Not need snippets for ADS Now I haven't errors. Sorry for my problems, but I have a deadline and these problems..... Sorry again. Now I try to read token I hope all is ok Thanks again Upvote 0
Ok I understand!!! Not need snippets for ADS Now I haven't errors. Sorry for my problems, but I have a deadline and these problems..... Sorry again. Now I try to read token I hope all is ok Thanks again