hyperlab / TiMixpanel

Mixpanel integration for Titanium Mobile
22 stars 12 forks source link

Automatically display Android surveys and in-app notifications #16

Open timanrebel opened 9 years ago

timanrebel commented 9 years ago

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.

We need to do some more research.

jonatansberg commented 9 years ago

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.