Currently surveys and in-app notifications are only shown when requested manually. It would be nice if they were shown automatically.
To do so we probably need to do some changes in the structure of the SDK. We currently 'enable' the module by calling initWithToken, but when we call this method the Activity has already been loaded. We might need to set the token in tiapp.xml and automatically can initWithToken when the app is started.
The initWithToken call could also simply be moved to alloy.js (or app.js) if we want to initialize the module before any other activities/windows are started/opened.
Currently surveys and in-app notifications are only shown when requested manually. It would be nice if they were shown automatically.
To do so we probably need to do some changes in the structure of the SDK. We currently 'enable' the module by calling
initWithToken
, but when we call this method the Activity has already been loaded. We might need to set the token intiapp.xml
and automatically caninitWithToken
when the app is started.We need to do some more research.