nativescript-app-sync icon indicating copy to clipboard operation
nativescript-app-sync copied to clipboard

Please upgrade this plugin for NS 7

Open lehongwang opened this issue 5 years ago • 12 comments

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

thank you very much

lehongwang avatar Nov 24 '20 04:11 lehongwang

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".

weathered-fire-2600 avatar Dec 03 '20 06:12 weathered-fire-2600

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

lonemanotzi avatar Dec 07 '20 14:12 lonemanotzi

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

sieubanana avatar Jan 04 '21 06:01 sieubanana

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?

weathered-fire-2600 avatar Jan 04 '21 11:01 weathered-fire-2600

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).

lonemanotzi avatar Jan 05 '21 14:01 lonemanotzi

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

thank you

lehongwang avatar Jan 06 '21 07:01 lehongwang

@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"

weathered-fire-2600 avatar Jan 06 '21 08:01 weathered-fire-2600

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/

AnthonyLenglet avatar Jan 18 '21 12:01 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/

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

lehongwang avatar Jan 18 '21 16:01 lehongwang

@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

lehongwang avatar Jan 19 '21 16:01 lehongwang

@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"
      }
    }
  ]
}

mahmoudajawad avatar Feb 22 '21 18:02 mahmoudajawad

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"
}

vallemar avatar Mar 19 '21 17:03 vallemar