Appcelerator app doesn't restart (Android)

前端 未结 2 1154
长情又很酷
长情又很酷 2021-01-23 07:30

I\'ve created an app, everything works fine.

However, when I close the app bij pressing back, and open the app again, it doesn\'t pass the splash-screen.

If I co

相关标签:
2条回答
  • 2021-01-23 08:12

    Update your app to Ti SDK 6.0.0. This will fix the issue, I tested it by myself. Also see: app will freeze if re-launch from the task bar after closing it using Titanium.Android.currentActivity.finish();

    0 讨论(0)
  • 2021-01-23 08:15

    I solved it by adding this property in tiapp.xml in the root of the <ti:app> tag:

    <property name="ti.android.root.reappears.restart" type="bool">true</property>
    

    and remove:

    <property name="run-on-main-thread" type="bool">true</property>
    
    0 讨论(0)
提交回复
热议问题