push notification - OneSignal.setSubscription(true) not working on Android? -


when user uninstalls app, onesignal subscribed status changed no (not subscribed). when user reinstalls app, can add , remove tags , change other info can't change subscribed status yes.

in application, i'm calling method onesignal.setsubscription(true) seems not working. doing wrong?

public class myapplication extends application {     public void oncreate(){        onesignal.startinit(this).init();        onesignal.sendtag("tag", "change_tag"); // working        onesignal.setsubscription(true); // not working    } ... } 

i configuring wrong google project number in gradle file. seems onesignal can add/remove tags without google project number, can't subscribe user (which makes sense).

manifestplaceholders = [manifestapplicationid: "${applicationid}",                        onesignal_app_id: "88888888-88888-8888-8888-888888888888",                        onesignal_google_project_number: "888888888888"] 

Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -