Android Question Manifest Problems!

aidymp

Well-Known Member
Licensed User
Longtime User
HI, I have a project that was last released to google in May of this year. (I believe I was using B4A 7.xx) I read that things need to change before I can update the app on Google, but put it off, as I didn't need to do any updates. So after yet another format, I am on B4A 8.50 and my app used firebase notifications. (I got a crash, with the subscribetotopic. so simply commented it out, and the app compiled and worked as expected.

I then looked at firebase and added the new marcros' (I added them all except auth) as i dont use that but use notifications, admob etc.

It then just failed to run - and no output from the debug log.

I then thought it may be because the old firebase stuff was still in the manifest. so removed that! it still crashed (again no debug output)

So then i realised, the manifest contained stuff from the old b4a that may not be relevant, so i made a new project. added the firebase stuff. copied it all and put it in my original project! It still fails to run, and still gives no output via the debug log.

I have backups, so im not totally stuck. but no closer to getting firebase working. (am i right in thinking, once i have firebase working, I will be able to submit the app to GooglePlay as it will now target the latest API?)

Thanks

Aidy
 

npsonic

Active Member
Licensed User
You may want to test this to catch some exception.

Add this into Activity_Create
B4X:
If File.Exists(File.DirInternal,"exception") Then
    Msgbox(File.ReadString(File.DirInternal,"exception"),"Exception")
    File.Delete(File.DirInternal,"exception")
End If

and add this to your Starter service
B4X:
'Return true to allow the OS default exceptions handler to handle the uncaught exception.
Sub Application_Error (Error As Exception, StackTrace As String) As Boolean
    File.WriteString(File.DirInternal,"exception",Error & CRLF & StackTrace)
    Return True
End Sub
 
Upvote 0
Top