Skip to content

iOS not updated after AppSync #76

Open

Description

@SingleMalted

Hey @nstudio team @NathanWalker @NathanaelA @triniwiz,

I know you guys are busy but if you can take a quick look at this I would really appreciate it.

I'm using the AppSync plugin and the NS AppSync server. Syncing Android is working correctly but iOS just shows each sync version as pending (see below). The app seems to download and install the update but it doesn't run the updated code. If I run the sync again it returns no new sync version. I've tried using mandatory and killing/restarting the app multiple times but notta.

Here are my package specs:
NS: 8.0.2
@nativescript/core: 8.0.8
@nativescript/appsync: 3.0.1
nativescript-app-sync-cli: 1.0.1
@nativescript/ios: 8.0.0

For my build and deploy I'm using ns build ios --release and nativescript-app-sync release <appname> ios. Here is the iOS history from the appSync server:
ios-pending

As you can see the server shows all of my iOS appSyncs as pending.

Also, here is my appSync call:
app ts — loopmein-mobile 2021-07-21 11-21-58

Any help you can give me is greatly appreciated.
Cheers!

Activity

  1. lehongwang commented on Jul 25, 2021

    @lehongwang

    yes, please fix/upgrade this best plugin ever !!!

  2. datanotion commented on Jul 29, 2021

    @datanotion

    Howdy @NathanWalker @NathanaelA @triniwiz - just verifying - these repos from Eddy are indeed being supported by you now, correct?

    And has anyone out there been able to get this working with the latest NS?

    Thanks ya'll!

  3. sivo1981 commented on Jan 5, 2023

    @sivo1981

    Tested on latest version and i can confirm that it's working on Android but not on iOS.

    Really hope this plugin gets an update for iOS.

    ✔ Getting NativeScript components versions information...
    ✔ Component nativescript has 8.4.0 version and is up to date.
    ✔ Component @nativescript/core has 8.4.3 version and is up to date.
    ✔ Component @nativescript/ios has 8.4.0 version and is up to date.
    ✔ Component @nativescript/android has 8.4.0 version and is up to date.

  4. RGBvision commented on Aug 17, 2023

    @RGBvision

    Same issue. Working on Android but not on iOS
    @nativescript/core 8.5.9
    @nativescript/ios 8.5.2
    @nativescript/appsync 3.0.1

    Is plugin abandoned or updates are planned?

  5. srh545 commented on Jan 22, 2024

    @srh545

    Any update on this? Also not working on iOS.

  6. saranpol commented on Feb 6, 2024

    @saranpol

    Finally I can fix the problem for iOS in main.m

    #import <NativeScript/NativeScript.h>
    #import <AppSync/TNSAppSync.h> <<< add this line

    // config.BaseDir = baseDir; << comment this
    config.BaseDir = [TNSAppSync applicationPathWithDefault:baseDir]; << add this line

    then run from xcode to make it compile with new main.m

    (I am not sure why hooks/before-prepare doesn't work and it need to update)

  7. saranpol commented on Feb 16, 2024

    @saranpol

    I still found strange behavior in iOS

    after new fresh install
    with first app sync deploy it got update
    but after seconds, third, ... deploy it not update

  8. caracal7 commented on Jan 2, 2025

    @caracal7

    I still found strange behavior in iOS

    after new fresh install with first app sync deploy it got update but after seconds, third, ... deploy it not update

    Did you solve the problem?
    Can't get it work :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions