Results 1 to 6 of 6

Thread: Sencha Touch + phonegap app crashing on ios 8

  1. #1
    Sencha User
    Join Date
    Feb 2015
    Posts
    6

    Default Sencha Touch + phonegap app crashing on ios 8

    I am using sencha touch 2.3.1 and phonegap to make an app. my app is crashing on ios8. Everytime I open the app in iOS 8 it shows a black screen after splash screen and then app crashes. But when I open recent apps the app is still there in the list. Sometimes it opens app when I keep pressing app icon form menu.The same app is working fine on ios 7.I have researched about this issue everywhere, some people say that Phonegap is not fully supporting ios 8 and some of the plugins are not updated yet for ios 8. some people say Sencha Touch 2 is also not supporting ios 8.here is the list phonegap plugins that i am using in the app:

    com.phonegap.plugins.PushPlugin org.apache.cordova.device org.apache.cordova.dialogs org.apache.cordova.file org.apache.cordova.inappbrowser org.apache.cordova.media org.apache.cordova.network-information
    Please help me with this issue.

  2. #2
    Sencha User Trozdol's Avatar
    Join Date
    Jan 2009
    Location
    Nashville
    Posts
    64
    Answers
    2

    Default

    I haven't tried 2.3.1 with iOS 8, but have you tried taking a look at the app in Safari from the device or simulator? If you aren't familiar with it you open Safari

    Setup in Safari
    1. Open Safari Preferences
    2. Click 'Advanced' tab
    3. Check 'Show Develop Menu in menu bar'
    On iOS Device
    1. Open Settings App
    2. In Settings go to Safari -> Advanced (Bottom)
    3. Make sure 'Web Inspector' is toggled 'On'
    To Debug
    1. Plug in device to Mac
    2. Open Safari
    3. Click on Develop in Menu bar
    4. You should see your device name listed in the Develop dropdown
    5. Hover over device name to show any web inspectable pages on your device
    6. Click on the one you want
    7. Safari Dev tools opens up on your mac
    You can do this for any page running in a web view on your device, simulator and of course Safari. Even in a PhoneGap wrapped app.

    You if you don't see any useful data in the Console you might want to install the Console plugin for PhoneGap/Cordova. This has helped me tremendously!

    http://plugins.cordova.io/#/package/...ordova.console

    Also I know some people use GapDebug. I personally haven't used it because Safari is usually enough.

    Hope this helps. If you find out anything and still have issues post your problems. Maybe I can still help.
    Attached Images Attached Images
    Shayne Trosdahl
    @Trozdol
    CodePen

  3. #3
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,449
    Answers
    3997

    Default

    iOS 8 was first released in September of 2014 while Sencha Touch 2.3.1 was released in November 2013, almost a full year before iOS 8 was released. Therefore, Sencha Touch 2.3.1 cannot officially support iOS 8. You would need to update your Sencha Touch SDK to 2.4.1
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Fullstack Engineer
    ________________
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

    Check out my GitHub:
    https://github.com/mitchellsimoens

  4. #4
    Sencha User
    Join Date
    Feb 2015
    Posts
    6

    Default I tried on sencha touch 2.4.1 with a demo app

    Thanks for replying

    I tried on sencha touch 2.4.1 with a demo app with phonegap and i am facing the same issue there. the app crashes sometimes on launch after splash screen.

    Should i also update my sencha cmd ? currently i am using sencha cmd v5.1.1.39

    Is there any latest video available to make a build in for ios using sencha touch 2.4.1, phonegap and xcode?

  5. #5
    Sencha User
    Join Date
    Feb 2015
    Posts
    6

    Default


    Here is the logs from the test app using sencha touch 2.4.1


    2015-06-03 17:35:22.371 testIos[1380:190220] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///private/var/mobile/Containers/Data/Application/80CE1447-9B64-4F39-A756-643B2207A7FF/Library/Cookies/Cookies.binarycookies
    2015-06-03 17:35:22.547 testIos[1380:190220] Apache Cordova native platform version 3.7.0 is starting.
    2015-06-03 17:35:22.552 testIos[1380:190220] Multi-tasking -> Device: YES, App: YES
    2015-06-03 17:35:22.580 testIos[1380:190220] Unlimited access to network resources
    2015-06-03 17:35:24.991 testIos[1380:190220] Resetting plugins due to page load.
    2015-06-03 17:35:26.870 testIos[1380:190220] Finished load of: file:///private/var/mobile/Containers/Bundle/Application/563B20FF-984B-42CF-98BC-61A1A34694F1/testIos.app/www/index.html
    2015-06-03 17:35:28.595 testIos[1380:190313] *** -[AVAssetResourceLoadingRequest finishLoading] was sent to an instance of AVAssetResourceLoadingRequest that was already finished. Ignoring.



  6. #6
    Sencha User Trozdol's Avatar
    Join Date
    Jan 2009
    Location
    Nashville
    Posts
    64
    Answers
    2

    Default

    I would recommend updating sencha cmd. Hmm..

    The last one I don't think I've seen before. but the rest of your logs look typical.

    Have you tried running the console plugin? It will display all the logs from your sencha code. I think it's probably something simple it's just a matter of seeing what it is.

    Also check your app.json easy to forget
    Shayne Trosdahl
    @Trozdol
    CodePen

Similar Threads

  1. Debug log with sencha architect / sencha touch / phonegap not working
    By xavier.ifc in forum Sencha Architect 3.x: Bugs
    Replies: 1
    Last Post: 2 Dec 2013, 1:15 PM
  2. Sencha Touch 2.2.1, Phonegap 2.9.0 and Phonegap Plugin Mapkit
    By bandicut in forum Sencha Touch 2.x: Q&A
    Replies: 2
    Last Post: 29 Aug 2013, 3:15 AM
  3. Sencha Touch 2 with Charts Beta crashing in iPad
    By mitaligupta1212 in forum Sencha Touch 2.x: Q&A
    Replies: 7
    Last Post: 19 Oct 2012, 1:12 PM
  4. [INFOREQ] Sencha Touch is crashing on iPad Safari with lot of images
    By anwarmalik in forum Sencha Touch 2.x: Bugs
    Replies: 2
    Last Post: 20 May 2012, 7:52 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •