Android Question App do not run in Android 13

engvidal

Member
Licensed User
Longtime User
Hi

I made an app using firebase, with code and integration based in early Erel's tutorial, that runs OK.

Now, when installed in a new Android 13 phone, it crashes.

Any help?

Thanks.

Vidal
 

DonManfred

Expert
Licensed User
Longtime User
Any help?
Any additional info about the problem? We can not guess it.

Please post the full error.
What B4A Version are you using? The SDK is from what date (Date installed)?
 
Last edited:
Upvote 0

engvidal

Member
Licensed User
Longtime User
Hi

I am using a brand new computer.

So I am using the latest B4A and openjdk 11 (link https://b4xfiles-4c17.kxcdn.com/jdk-11.0.1.zip)

The app starts and show an adjust activity. When I click my "init button", it goes background.

I have devices with witn android 9, 11 and 12.

When a firebase message arrives, they "wake" and shows a notification.

With android 13 (from a friend), it install and run like expected, but there are no notifications (I don't know if they arrive or not)
No messsages, warnings, etc.
Just silent

Thanks

Attached the apk (sorry but the labels are in portuguese)
 
Upvote 0

josejad

Expert
Licensed User
Longtime User
Installed in my Android 13 phone.
No icon or anything to know if the app is running in background.

Does the Erel's sample work on your friend phone? Start with that.
 
Last edited:
Upvote 0

engvidal

Member
Licensed User
Longtime User
Hi José
Thank you for your attention.
The Erel's original demo from 2016/2018 is the base code and runs ok until android 12.
In that case I am using services.

Vidal
 
Upvote 0

josejad

Expert
Licensed User
Longtime User
Have you seen this note:

Edit: FirebaseMessaging should be a Receiver. Not a service

And this one?
Q. I don't need new stuff. I will continue to use my beloved services for all of these use cases.

A. Good for you, but your app will crash on Android 12+ devices with this error when the process is started from the background
 
Upvote 0

Andrew (Digitwell)

Well-Known Member
Licensed User
Longtime User
Have you seen this discussion?


It may be that the app does not have Notification permission on Android 13.
 
Upvote 0

engvidal

Member
Licensed User
Longtime User
Hi friends

Solved

Deleted my 'service module' and added 'receiver module', and a few changes in my routines.

I am an IoT developer, not a mobile developer.
My apps are only to validation of my devices.

Anyway, thanks forr all

Vidal

www.vidal.com.br
 
Upvote 0

engvidal

Member
Licensed User
Longtime User
With this change I noticed a new issue.

My app plays a personalized sound using media player.

Wuan I was using services, inside configuration > notificatios I had two chechbox. One of the to disable my beep and another to disable the default notificatin sound.

Now with receiver, I have only one, so if checked (default state) I receive two sounds (my and default)

Can I programaticaly disable the default android sound?

Thanks
 
Upvote 0

josejad

Expert
Licensed User
Longtime User
Upvote 0
Top