Android Question Firebase Notification error

Jithesh Mepparambath

Member
Licensed User
Hi Erel ,

First of all I thank you for creating such a wondefull tool and creating the vidoes and Booklets.

using the Booklets i was able to create the first APP succefully . I wanted to test the FCM push Notification , I watched your video and gone through the documentation .

when I am running the application in release mode , following errors are coming .

Code is here with Attached.


Logger connected to: samsung SM-J730GM
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (firebasemessaging) Create ***
** Service (firebasemessaging) Start **
firebasemessaging_subscribetotopics (java line: 228)
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.firebase.iid.FirebaseInstanceId.zza(java.lang.String)' on a null object reference
at com.google.firebase.messaging.FirebaseMessaging.subscribeToTopic(Unknown Source)
at anywheresoftware.b4a.objects.FirebaseNotificationsService$FirebaseMessageWrapper.SubscribeToTopic(FirebaseNotificationsService.java:130)
at com.quiqgenie.pushexample.firebasemessaging._subscribetotopics(firebasemessaging.java:228)
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:1154)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6776)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1496)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1386)

upload_2018-5-9_0-14-19.png




upload_2018-5-9_0-14-52.png
 

Attachments

  • PushSample.zip
    9.2 KB · Views: 93

Jithesh Mepparambath

Member
Licensed User
Hi Manfred ,

Thanks for the solution. now it works like a charm.

Thanks again.

With reference to this FCM is there any documentation link available where I can go through how this notification works.

I mean how i will send the notification and those who received , while clicking on it how I can go to the particular Msg in my android application.etc...

I want to send notification to many , to selected people or to single person. how i can achieve this

regards

Jithesh M
 
Upvote 0
Top