push notification - How to hold Xtify subscription till successful login and users acceptance for registration -
objective implement push subscription using xtify sdk in ios , android apps. other requirement subscription should happen xtify if user has done successful login , users agreement subscription (not before that). problem in xtify sdk don't find explicit subscription method , appears subscription happens automatically @ time when app gets loaded first time. want control behavior , want call subscription after successful login , users acceptance (via js popup) wants register (or not) xtify notifications. based on response, i'll decide whether subscribe xtify or not.
requirement xid should not generated till time login successful , user has accepted terms & condition after that.
please let me know sdk subscription method can decide when call.
app details:
- ibm worklight 6.2 hybrid app
- environments: android , ios
for ios, need move xtify initialization code login section. in particular move following code desire place:
xlxtifyoptions *anxtifyoptions=[xlxtifyoptions getxtifyoptions]; anxtifyoptions.categories = [self getdeveloperpushcategories]; // use method enable static categories [[xlappmgr ]initilizexoptions:anxtifyoptions];
for android, you'll need move initialization, see below, mainactivity::onstart() desire place:
xtifysdk.start(getapplicationcontext(), xtify_app_key, project_num);
Comments
Post a Comment