WordPress LMS for Web and mobile Forums Ionic App Support I can't see anything in iOS simulator

I can't see anything in iOS simulator

Tagged: ,

Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #40748

    Rincha
    Participant

    When I test the app in chrome, works fine, but when I test on the simulator, I’m not getting web services response and I can’t see anything

    #40775

    WPLMS
    Keymaster

    Please share more details.

    Did you try adding the google services file as in this article : https://wplms.io/unit/installing-firebase-packages/?id=641

    #40777

    Scott Lang
    Keymaster

    Hi,

    Please share your APK file with us which you have build. It can be a restriction from site end so that data from the site can not be fetched and not showing in the app.

    #40778

    Scott Lang
    Keymaster

    We are using ionic framework.you can see console data and network response in your browser when the app is running on a simulator or actual device.

     

    #40885

    Rincha
    Participant

    <span style=”color: #313b3d; font-family: Poppins; font-size: 18px;”>google-services.json is required for push notifications and chat, but I don’t need this services in my app. Anyway, I have added the google services file and I’m having the same issue.</span>

    #40886

    Rincha
    Participant

    @Scott Lang as I said, I’m testing in iOS not in Android.
    For example, in course.ts in folterItems() I have added some console.log() and in:
    this.filterobservable = this.http.get(url)
    .map(response =>{
    console.log(‘OK’)
    I’ve never seen OK in the console. The same in other this.http.get(url) responses

    #40925

    WPLMS
    Keymaster

    IF you’re not using Chat and Push notifications then you need to remove the google-services.json dependency in config.xml of the project. Just remove the line from config.xml and it should work.

    #40967

    Rincha
    Participant

    No, it doesn’t works.
    Hi have tested in two Macbook and I have the same problem, when I test the app in XCode for iOS the app contains the tabbar and navigation bar but don’t contain information, I can’t see my courses.

    #41002

    WPLMS
    Keymaster

    ok but in chrome “ionic serve” you’re able to see the courses ?
    Usually all app requests do not require us to remove chat so, google-services is a required thing.
    I am going to try this in iOS app and will share results on this in few hours

    #41005

    Rincha
    Participant

    “ok but in chrome “ionic serve” you’re able to see the courses ?”
    Yes, in chrome I can see the courses with “ionic serve”

    Ok, thanks for your help, I have tested with and without google-services and the result is always the same.
    In my Info.plist I have added:
    <key>NSAppTransportSecurity</key>
    <dict>
    <key>NSExceptionDomains</key>
    <dict>
    <key>scrumdemy.com</key>
    <dict>
    <!–Include to allow subdomains–>
    <key>NSIncludesSubdomains</key>
    <true/>
    <!–Include to allow HTTP requests–>
    <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
    <true/>
    <!–Include to specify minimum TLS version–>
    <key>NSTemporaryExceptionMinimumTLSVersion</key>
    <string>TLSv1.1</string>
    </dict>

    But I think the API is not working. I’m not getting data from my WordPress.

    #41063

    Rincha
    Participant

    Please, could you help me?
    it’s very frustrating to buy a product and have this kind of problems.

    #41068

    Scott Lang
    Keymaster

    Sorry for your issue but this is an issue with your app configuration.

    Please share your ios build file and admin cred in private reply. We will configure your app at our end and let you know. Also, we need your package.json and config.xml to check.

    Please ping us back for a reminder.

    #41094

    Rincha
    Participant
    This reply has been marked as private.
    #41108

    Scott Lang
    Keymaster

    Hi,

    We have run your ios project at our end and found: http://prntscr.com/qcdvew

    This is just some access error from the app, not API. You just need to update your config.xml file. Refer this: https://gist.github.com/shubham-99fusion/d8c5d60ab3f3a0bcc1aa5102fee369c0

    Update your config.xml where : <access origin=”*” />

    #41217

    Rincha
    Participant

    Hello,

    as you can see in my config.xml I have the same line: <access origin=”*” /> and the error persist.
    Also I have used the config.xml in https://gist.github.com/shubham-99fusion/d8c5d60ab3f3a0bcc1aa5102fee369c0 and the error persist.
    I think the error is in the API

    #41254

    Rincha
    Participant

    Please, I need a solution for this

    #41272

    Scott Lang
    Keymaster

    Looks like there are multiple issues on your site.

    1- Access origin not allowed by the site
    for this you need to do add this code to your customizer plugin
    function add_cors_http_header(){ header(“Access-Control-Allow-Origin: *”); } add_action(‘init’,’add_cors_http_header’);

    2- Also we are getting the error from your site [path: plugins/woo-gutenberg-products-block/src/RestApi.php:74]  on API hit too refer to this image: http://prntscr.com/qdeka6 .  Coming from woo-gutenberg-products-block plugin [deactivate the plugin]

    To check your API just paste the URL in the browser you will get data: https://scrumdemy.com/wp-json/wplms/v1/course/popular?per_view=5

    If you are unable to fix the error share your FTP and admin credentials in private reply we will add code and check the API response

    #41290

    Rincha
    Participant
    This reply has been marked as private.
    #41303

    Scott Lang
    Keymaster

    Hi,

    We are unable to login through your FTP refer this error: http://prntscr.com/qdizf8
    Share your valid FTP.

    We are unable to detect the customizer plugin at the time of plugin editing from the in editor.

    Or you can do like this: http://prntscr.com/qdj0yc

    function add_cors_http_header(){ 

    header(“Access-Control-Allow-Origin: *”); 

    }

    add_action(‘init’,’add_cors_http_header’);

     

    #44082

    Rincha
    Participant
    This reply has been marked as private.
Viewing 20 posts - 1 through 20 (of 20 total)
  • You must be logged in to reply to this topic.