About IOS Test

Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #14020

    sudong
    Participant

    Hi,I successfully build ios,but when i run it  in the simulator,it shows the tabs but  there is no content.Whats more,it works good in my Android.And when i download my ios app through the TestFlight,when I open it, it only appears splash picture, and then is blank. I have down your app ‘ wplms student app’ in the AppStore,when I open it, it always shows the splash picture. Why?

    #14023

    sudong
    Participant

    What’s more, when i run “ionic serve” it shows this: http://prntscr.com/kbnvtx

    #14034

    Alex
    Keymaster

    Seems to be related to your ionic cordova libraries.

    Refer    : https://forum.ionicframework.com/t/navigator-splashscreen-is-undefined/28240/3

     

    try running this command in terminal or cmd after navigating to ionic project folder:

    cordova plugin add cordova-plugin-splashscreen

     

    after it :

    cordova plugin save

     

    after it :

    cordova clean

    #14057

    sudong
    Participant

    It did’t work.”ionic serve” just the same error http://prntscr.com/kbnvtx

    and when i open my app,after splash picture it is a blank.The full screen of the mobile phone is white.

    #14093

    Alex
    Keymaster

    Hi this is my setup on IOs which is working  :

    Hi here is my working build environment on mac :

     

    IONIC INFO :

     

    cli packages: (/usr/local/lib/node_modules)

     

    @ionic/cli-utils  : 1.19.1

     

    ionic (Ionic CLI) : 3.19.1

     

    global packages:

     

    cordova (Cordova CLI) : 8.0.0

     

    local packages:

     

    @ionic/app-scripts : 3.1.8

     

    Cordova Platforms  : ios 4.5.4

     

    Ionic Framework    : ionic-angular 3.9.2

     

    System:

     

    ios-deploy : 1.9.2

     

    Node       : v6.11.4

     

    npm        : 3.10.10

     

    OS         : macOS High Sierra

     

    Xcode      : Xcode 9.0 Build version 9A235

     

    Environment Variables:

     

    ANDROID_HOME : not set

     

    Misc:

     

    backend : pro

     

     

    Cordova plugins and their versions :

     

    cordova-plugin-camera 4.0.2 “Camera”

     

    cordova-plugin-console 1.1.0 “Console”

     

    cordova-plugin-device 2.0.1 “Device”

     

    cordova-plugin-facebook4 2.0.1 “Facebook Connect”

     

    cordova-plugin-file 6.0.1 “File”

     

    cordova-plugin-file-transfer 1.7.1 “File Transfer”

     

    cordova-plugin-googleplus 5.3.0 “Google SignIn”

     

    cordova-plugin-inappbrowser 2.0.2 “InAppBrowser”

     

    cordova-plugin-inapppurchase 1.1.0 “In App Purchase”

     

    cordova-plugin-ionic-keyboard 2.0.5 “cordova-plugin-ionic-keyboard”

     

    cordova-plugin-ionic-webview 1.1.16 “cordova-plugin-ionic-webview”

     

    cordova-plugin-splashscreen 5.0.2 “Splashscreen”

     

    cordova-plugin-statusbar 2.4.2 “StatusBar”

     

    cordova-plugin-whitelist 1.3.3 “Whitelist”

     

    cordova-sqlite-storage 2.0.4 “Cordova sqlite storage plugin”

     

    ionic-plugin-keyboard 2.2.1 “Keyboard”.

     

     

    config.xml file and package.json files :   https://we.tl/GY1MNeAi8F

     

     

    You can take backup of your ionic setup rename the package.json file and node_modules folder .

    then you have to add the given config.json file to your project and open terminal and run :

    npm install

    After that please check for the corodova plugins .

    Install the cordova plugins with their versions mentioned above .

    example :

     

    cordova plugin add {cordova plugin name}@{version} 

     

    cordova plugin add [email protected]

     

    #14184

    sudong
    Participant

    I just creat another new app ID for ios in my website.And I rebuild my ionic project, installing plugins one by one, while ensuring that their versions are consistent with the version that I successfully installed on Android.Finally, when i run ‘ionic serve’ it works good.

    But, it doesen’t show any content.Please look: http://prntscr.com/ke3etn

    And in my chrome console it shows this:

    Failed to load http://47.94.143.121/wp-json/wplms/v1/course/featured?per_view=5: The ‘Access-Control-Allow-Origin’ header contains multiple values ‘http://localhost:8100, *’, but only one is allowed. Origin ‘http://localhost:8100’ is therefore not allowed access.

    #14188

    sudong
    Participant

    I have solved this problem, its my website’s problem. In my apache config  file,i delete the code about cross domain.

    Anyway,thanks very much.

    #14189

    sudong
    Participant

    I run “ionic serve”, it works good. But when I was running on the simulator and the real machine, it didn’t show the content of my website.It’s strange.

    #14195

    Alex
    Keymaster

    You need to debug it and check if the response is coming from api hit .

    use Safari simulator debugger to debug your app .

    refer : https://support.saucelabs.com/hc/en-us/articles/115002200207-Opening-the-Web-Inspector-to-Debug-Applications-in-the-iOS-Simulator-Mobile-Safari 

    In network tab you can see the response of api hits  .

    https://stackoverflow.com/questions/8839743/debugging-web-app-in-ipad-simulator

    #14207

    sudong
    Participant

    In my xcode debug console, it shows this:http://prntscr.com/kej5zq

    NSURLConnection HTTP load failed

    My android app works good.

    #14253

    Alex
    Keymaster
    This reply has been marked as private.
    #14307

    sudong
    Participant
    This reply has been marked as private.
    #14325

    Alex
    Keymaster

    Please try this src file : https://we.tl/2N3KqU8Yh3

     

    #14326

    sudong
    Participant

    We can bind the website through URL and client_id. If someone knows  my URL and client_id, can they create the same app ? They can charge free by modifying the code. Why the client_secret  in the config.ts need not be filled in?

    #14327

    sudong
    Participant

    I replace the src file in my ios project. But it doesn’t change any more.It just cant get the website content.

    #14345

    Alex
    Keymaster

    Client secret is not added to app ,it is fetched when user opens up the app and then client secret is used for all user related calls .

    apart from this there is a state param in app which is used to verify the api hits for all user related hits plus all the user realated api hits are based on token verification .

    So right now yes if someone knows your client id he can see public information like courses list but they cannot make any user related api hits .

    for your blank issue please refer :  http://prntscr.com/kgy14j

Viewing 16 posts - 1 through 16 (of 16 total)
  • You must be logged in to reply to this topic.