java - How can I get my Android app with use Branch.io Deeplinking AND support minimize/resume the app? -




i using branch.io deeplinking in android app, , part, works under scenarios. however, have scenario register user (to service); , in flow, user requests sms verification code, , has leave app (minimize) read it, re-enter app (restore) validate code.

i had behavior working before implementing branch.io, , reason has branch.io requiring android:launchmode="singletask" in androidmanifest.xml file (see here).

<activity    android:name="com.yourapp.splashactivity"    android:label="@string/app_name"    android:launchmode="singletask"    ... 

when android:launchmode="singletask" removed, user can leave/enter app as want , returned same activity on when minimized app. yet, branch.io deeplinking no longer respected.

however, seems minimize/restore behaivor not (?) possible branch.io implemented. it? how can retain minimize/restore functionality of app, implementing branch.io deeplinking?

in addition amruta's comment wanted contribute. singletask required proper deep linking avoid multiple instances of same activity, our best workaround/suggestion issue hasn't been mentioned yet create transparent deep linking activity. way can set throw away transparent activity singletask, init session it -> grab params -> route accordingly. otherwise you're stuck adjusting main app flow our requirement of using singletask. tends popular workaround!





wiki

Comments

Popular posts from this blog

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -

Asterisk AGI Python Script to Dialplan does not work -