Android Question Firebase v1 2023 sending message app fails

fs007

Member
I want to code an app which sends Firebase v1 messages.
Therefore i copied the B4J-sendingTool, which was available in the Tutorial and the dependencies (in addlib), but it doesn't work in B4A:
Runtime error occurs in this line:
GoogleCredentials.InitializeStatic("com.google.auth.oauth2.GoogleCredentials")

Error message is:

 

fs007

Member
Addition: There seems to be a major bug in this code of B4J-sendingTool, because the code runs error free if i disable strict-mode. But where is the bug ???

 
Upvote 0

fs007

Member
ok Sir, but my "intended use case" is to use this code in an android app. Here is the full error message if i do NOT DISABLE StrictMode (code works error-free with StrictMode disabled): Issue seems to be Network on Main Thread

 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…