uniplan Active Member Licensed User Longtime User Feb 26, 2018 #1 Hi, i have implemented the notification push with firebase, and i save and display my notify message in method "fm_MessageArrived" like this Code: Copy ... n.SetInfo2(titolo,messaggio_problema,id_notifica,Main) n.Vibrate=True n.AutoCancel=True n.Notify(id_notifica) i set the actovity main to start when the notify is clicked. But i have a problem when i start phone and app is closed...i don't receive the notifications. Only when i start the application, i receive the notify. Ho i can solve it and receive the notify always? Thank you
Hi, i have implemented the notification push with firebase, and i save and display my notify message in method "fm_MessageArrived" like this Code: Copy ... n.SetInfo2(titolo,messaggio_problema,id_notifica,Main) n.Vibrate=True n.AutoCancel=True n.Notify(id_notifica) i set the actovity main to start when the notify is clicked. But i have a problem when i start phone and app is closed...i don't receive the notifications. Only when i start the application, i receive the notify. Ho i can solve it and receive the notify always? Thank you
DonManfred Expert Licensed User Longtime User Feb 26, 2018 #2 What is targetsdk is set to? How are you sending the Push? With the B4J Code or with the FB console? Please note the infos here: https://www.b4x.com/android/forum/threads/android-jar-targetsdkversion-minsdkversion.87610/ Especially Erel said: - 26 - background limits. Will require an update to B4A. Don't set targetSdkVersion to 26 if you are using features such as: push notifications, StartServiceAt or #StartAtBoot. Click to expand... Last edited: Feb 26, 2018 Upvote 0
What is targetsdk is set to? How are you sending the Push? With the B4J Code or with the FB console? Please note the infos here: https://www.b4x.com/android/forum/threads/android-jar-targetsdkversion-minsdkversion.87610/ Especially Erel said: - 26 - background limits. Will require an update to B4A. Don't set targetSdkVersion to 26 if you are using features such as: push notifications, StartServiceAt or #StartAtBoot. Click to expand...
uniplan Active Member Licensed User Longtime User Feb 26, 2018 #3 android:minSdkVersion="7" android:targetSdkVersion="22" thi is my configuration... and the firebase service is set with #StartAtBoot: false i send push with window service , i create a json and send post message. what i can do for my b4a App? Upvote 0
android:minSdkVersion="7" android:targetSdkVersion="22" thi is my configuration... and the firebase service is set with #StartAtBoot: false i send push with window service , i create a json and send post message. what i can do for my b4a App?
DonManfred Expert Licensed User Longtime User Feb 26, 2018 #4 uniplan said: i send push with window service , i create a json and send post message. Click to expand... Make sure to use the correct json format to send. Check the B4J App in the Tutorial. Upvote 0
uniplan said: i send push with window service , i create a json and send post message. Click to expand... Make sure to use the correct json format to send. Check the B4J App in the Tutorial.
uniplan Active Member Licensed User Longtime User Feb 26, 2018 #5 Yes because i receive correctly the push when app is opened or work in background.If is closed i don't receive it. Upvote 0
Yes because i receive correctly the push when app is opened or work in background.If is closed i don't receive it.
DonManfred Expert Licensed User Longtime User Feb 26, 2018 #6 All i can say is: Check the B4J App and the results. (I´m pretty sure it does work.) If it works than the json format you are sending is wrong and you need to adapt it to be the same format as the B4J App is sending. Upvote 0
All i can say is: Check the B4J App and the results. (I´m pretty sure it does work.) If it works than the json format you are sending is wrong and you need to adapt it to be the same format as the B4J App is sending.
uniplan Active Member Licensed User Longtime User Feb 26, 2018 #7 ok.... About Android 8 (api 26)...what do you advime me to do? it's better to set targetSdk to api 26 and modify in this mode the service ? https://www.b4x.com/android/forum/threads/version-safe-notification.87663/ Thank you Upvote 0
ok.... About Android 8 (api 26)...what do you advime me to do? it's better to set targetSdk to api 26 and modify in this mode the service ? https://www.b4x.com/android/forum/threads/version-safe-notification.87663/ Thank you
DonManfred Expert Licensed User Longtime User Feb 26, 2018 #8 uniplan said: (api 26)...what do you advime me to do? Click to expand... Do NOT use Api 26 with B4A <8.0 B4A 8 is annonced for next month Upvote 0
uniplan said: (api 26)...what do you advime me to do? Click to expand... Do NOT use Api 26 with B4A <8.0 B4A 8 is annonced for next month
uniplan Active Member Licensed User Longtime User Feb 26, 2018 #9 ok... thank you so much.. I Find my problem.. i insert my notify before the initialization of sql, and i have an exception. i initialize the sql inside main activity. Upvote 0
ok... thank you so much.. I Find my problem.. i insert my notify before the initialization of sql, and i have an exception. i initialize the sql inside main activity.