Skip to content

Please upgrade this plugin for NS 7 #72

Open

Description

@lehongwang

HI, Can you upgrade this useful plugin for nativescript 7 ??
It is very important for my app(s)

thank you very much

Activity

  1. weathered-fire-2600 commented on Dec 3, 2020

    @weathered-fire-2600
    Contributor

    Are there any efforts to make this plugin compatible with NS7? It would be really cool if anyone can reply to this (major) issue, NS7 has been released 3 months ago... It became very quiet here ;)

    I really love this plugin but in current state it is far away from "production ready".

  2. lonemanotzi commented on Dec 7, 2020

    @lonemanotzi

    forget about NS7, this plugin has stopped working months back with MaxUserExceeded error and NS team has no apatite to fix this.

  3. sieubanana commented on Jan 4, 2021

    @sieubanana

    this plugin is main reason for me to use nativescript :((

  4. weathered-fire-2600 commented on Jan 4, 2021

    @weathered-fire-2600
    Contributor

    forget about NS7, this plugin has stopped working months back with MaxUserExceeded error and NS team has no apatite to fix this.

    Looks like this is more a server related issue? Do you use the "built in" appsync server provided by nativescript team or do you host the server part on your infrastructure?

  5. lonemanotzi commented on Jan 5, 2021

    @lonemanotzi

    forget about NS7, this plugin has stopped working months back with MaxUserExceeded error and NS team has no apatite to fix this.

    Looks like this is more a server related issue? Do you use the "built in" appsync server provided by nativescript team or do you host the server part on your infrastructure?

    built-in appsync server. I didn't get time to set up my own server... So many plugins stopped working after IVY and NS upgrade, it looks like, time to move on to some other framework (React Native or Xamarin).

  6. lehongwang commented on Jan 6, 2021

    @lehongwang
    Author

    The server for appsync is not free, if possible, Can you make the paid version of appsync @EddyVerbruggen ?

    thank you

  7. weathered-fire-2600 commented on Jan 6, 2021

    @weathered-fire-2600
    Contributor

    @NathanWalker and @EddyVerbruggen any update on this? Would be really cool to get some positive news about this pending issue and we all really would appreciate using this plugin with NS7.

    I cloned the required repos, dived deep into this code and tried to fix this but with no luck. It seems that the zip gets unpacked (download successful) but the entrypoint for the application never gets updated when restarting (via force close) the app.

    Also to mention: A fix must be done within the appsync-cli when releasing the ns7 application to the appsync-server. The script checks for a "nativescript" property in "package.json" so you cannot release it after migrating to NS7. Also the location of the paths to "appResourcesPath" and "appPath" have been changed from the old "nsconfig.json" to the "nativescript.config.ts"

  8. AnthonyLenglet commented on Jan 18, 2021

    @AnthonyLenglet

    FYI the plugin is actually updated to NS7, and is available under the name @nativescript/appsync, though nowhere to be seen on github, only on npm
    https://www.npmjs.com/package/@nativescript/appsync
    it was mentioned in this blog post that I feel like a lot of people missed due to it not being shown clearly, just kind of hidden somewhere
    https://nativescript.org/blog/nativescript-7-compatible-plugins/

  9. lehongwang commented on Jan 18, 2021

    @lehongwang
    Author

    FYI the plugin is actually updated to NS7, and is available under the name @nativescript/appsync, though nowhere to be seen on github, only on npm
    https://www.npmjs.com/package/@nativescript/appsync
    it was mentioned in this blog post that I feel like a lot of people missed due to it not being shown clearly, just kind of hidden somewhere
    https://nativescript.org/blog/nativescript-7-compatible-plugins/

    wow, it;s great

    but "out of resources"

    User 'beb5d64989c998' has exceeded the 'max_user_connections' resource (current value: 15)

    anyway to donate or paid version ?? thank you

  10. lehongwang commented on Jan 19, 2021

    @lehongwang
    Author

    @NathanWalker and @EddyVerbruggen any update on this? Would be really cool to get some positive news about this pending issue and we all really would appreciate using this plugin with NS7.

    I cloned the required repos, dived deep into this code and tried to fix this but with no luck. It seems that the zip gets unpacked (download successful) but the entrypoint for the application never gets updated when restarting (via force close) the app.

    Also to mention: A fix must be done within the appsync-cli when releasing the ns7 application to the appsync-server. The script checks for a "nativescript" property in "package.json" so you cannot release it after migrating to NS7. Also the location of the paths to "appResourcesPath" and "appPath" have been changed from the old "nsconfig.json" to the "nativescript.config.ts"

    I have just built myself code push server and working great , thank you all, great plugin ever

  11. mahmoudajawad commented on Feb 22, 2021

    @mahmoudajawad

    @lehongwang any tip on how to build the server? Did you just follow the instructions and got it work or that you had to implement some workarounds? I'm trying the instructions in docker as following, but failing:
    Dockerfile

    FROM centos:8
    
    RUN yum install -y nodejs git
    RUN npm i -g pm2
    
    RUN git clone https://github.com/NativeScript/nativescript-app-sync-server /root/nativescript-app-sync-server
    WORKDIR /root/nativescript-app-sync-server
    RUN npm i
    
    RUN ./bin/db init --dbhost mysql --dbport 3306 --dbname "codepush" --dbuser "root" --dbpassword "root"
    
    COPY process.json process.json
    
    CMD ["pm2-runtime", "process.json"]

    docker-compose.yml

    version: "3"
    
    services:
      mysql:
        image: mysql:8
        command: --default-authentication-plugin=mysql_native_password
        restart: 'always'
        environment:
          MYSQL_ROOT_PASSWORD: root
          MYSQL_DATABASE: codepush
      adminer:
        image: adminer
        restart: always
        ports:
          - 8080:8080
      app-sync-server:
        depends_on:
           - mysql
        build: .
        ports:
          - 3000:3000

    process.json

    {
      "apps": [
        {
          "name": "nativescript-app-sync-server",
          "max_memory_restart": "300M",
          "script": "/root/nativescript-app-sync-server/bin/www",
          "instances": "1",
          "exec_mode": "fork",
          "env": {
            "NODE_ENV": "production",
            "port": 3000,
            "CONFIG_FILE": "/root/nativescript-app-sync-server/config/config.js"
          }
        }
      ]
    }
    
  12. vallemar commented on Mar 19, 2021

    @vallemar

    Has anyone gotten the cli to work with NS7?

    UPDATE
    Put this file on root folder: nsconfig.json (old nativescript.config.ts)

    {
      "appPath": "src",
      "appResourcesPath": "App_Resources"
    }
    
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