Android Question Error in token

pazzokli

Active Member
Licensed User
Longtime User
Hi
I tried to convert B4J project called sending tool for Firebase notificaton in B4A but I retrieve this error
B4X:
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create (first time) **
googleoauth2_getaccesstoken (java line: 165)
java.lang.NullPointerException: Attempt to read from field 'boolean com.domos.client.googleoauth2$_tokeninformation.Valid' on a null object reference in method 'java.lang.String com.domos.client.googleoauth2._getaccesstoken()'
    at com.domos.client.googleoauth2._getaccesstoken(googleoauth2.java:165)
    at com.domos.client.b4xmainpage$ResumableSub_SendMessage.resume(b4xmainpage.java:118)
    at com.domos.client.b4xmainpage._sendmessage(b4xmainpage.java:84)
    at com.domos.client.b4xmainpage._initialize(b4xmainpage.java:78)
    at com.domos.client.b4xpagesmanager._initialize(b4xpagesmanager.java:707)
    at com.domos.client.main._activity_create(main.java:366)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:221)
    at com.domos.client.main.afterFirstLayout(main.java:105)
    at com.domos.client.main.access$000(main.java:17)
    at com.domos.client.main$WaitForLayout.run(main.java:83)
    at android.os.Handler.handleCallback(Handler.java:958)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loopOnce(Looper.java:224)
    at android.os.Looper.loop(Looper.java:318)
    at android.app.ActivityThread.main(ActivityThread.java:8759)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:561)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)
 

Attachments

  • prova.zip
    13.6 KB · Views: 20

DonManfred

Expert
Licensed User
Longtime User
So do you think will be impossible send Firebase Notification using Android?
- Create a B4J-Server app and implement the sendingcode here. Run the Serverapp on your Server.
- Call the server app from B4A to send a Notification.
 
Last edited:
Upvote 0

pazzokli

Active Member
Licensed User
Longtime User
- Create a B4J-Server app and implement the sendingcode here. Run the Serverapp on your Server.
- Call the server app from B4A to send a Notification.
This mean that I've to create a Java server on a Win PC or Is possibile emulate It on Android?
 
Upvote 0

pazzokli

Active Member
Licensed User
Longtime User
Thank Don. I study your advise. I'm not a professional programmer. I use b4a for hobby and I found your forum a MUST to understand something.
 
Upvote 0
Top