Sketchware-Pro / Sketchware-Pro

Sketchware Pro's sources in Java. Now anyone can contribute to Sketchware Pro.
https://sketchware.pro
Other
863 stars 254 forks source link

FCM notifications aren't received on devices running on Android 12 and above #640

Closed InfiSoftApps closed 11 months ago

InfiSoftApps commented 1 year ago

My app has FCM integrated into app where I send push notifications from Firebase Web Console. Those notifications are successfully received on devices running till Android 11 but not on the devices running above that.

Doing some Google search, i found out that possible cause of this is outdated SDK. Is it the main cause? If yes, please guide me to upgrade my app to lastest SDK. If no, please guide me towards the possible solution.

JavkhlanK commented 1 year ago

Currently, that's pretty hard unless you upgrade the library files in libs.zip and dexs.zip in the Sketchware Pro APK. Otherwise, you could not use the built-in Cloud Messaging Component, and add the FCM library on your own in Local library Manager.

PranavPurwar commented 1 year ago

maybe its because of sketchware not adding NOTIFICATIONS permission

InfiSoftApps commented 1 year ago

Can you pls suggest what's the best solution i can apply?

If we need to add the library manually, what exact process should i follow..

InfiSoftApps commented 1 year ago

@JavkhlanK Sir, Can you please guide me how can I proceed for the timebeing.!!

Thank You in advance

JavkhlanK commented 1 year ago

Like I mentioned above, you could try not using the built-in Cloud Messaging Component, and add the FCM library on your own in Local library Manager.

InfiSoftApps commented 1 year ago

I can add the Library manually but what concerns me is, how to initiate thr FCM manually?

If i use inbuilt component, it does all the menifest as well as initiation thing.

I would be glad if you could guide me setting up FCM manually.

PranavPurwar commented 1 year ago

Check FCM documentation

InfiSoftApps commented 1 year ago

@PranavPurwar brother, I checked the documentation. But not sure how to implement those steps in SK. That's where I'm stuck.

https://firebase.google.com/docs/cloud-messaging/android/client

PranavPurwar commented 1 year ago

Use Android Manifest manager and permission manager

InfiSoftApps commented 1 year ago

I'm familiar with Permission Manager. I would be glad if you could just guide me step by step with Manifest Implementation.

InfiSoftApps commented 1 year ago

Screenshot_2022-12-10-23-42-37-219_com sketchware remod

Screenshot_2022-12-08-14-45-08-553_com sketchware remod

I've included local Library of FCM but getting some error. Can @PranavPurwar sir/ @JavkhlanK Sir please help me.

JavkhlanK commented 1 year ago

Stop mentioning people when asking for help, thanks.

CloverClubWork commented 11 months ago

Hello, can I have the JSoup Library please? I always searching it to use on Sketchware Pro but I could not. If you could please provide it. Thank you

JavkhlanK commented 11 months ago

To this Issue's question, you can exclude built-in FCM libraries and replace them with your own versions from Local library Manager for a while now. Just go to Library Manager, then Exclude built-in libraries.