Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ionic framework 在PlayStore中自动检测新版本的Ionic 3应用程序_Ionic Framework_Ionic3_Version - Fatal编程技术网

Ionic framework 在PlayStore中自动检测新版本的Ionic 3应用程序

Ionic framework 在PlayStore中自动检测新版本的Ionic 3应用程序,ionic-framework,ionic3,version,Ionic Framework,Ionic3,Version,我正在尝试发布我的第一款爱奥尼亚应用程序。我想知道用户是如何知道PlayStore中有一个新的更新的,他们是如何下载的 什么是爱奥尼亚原生应用程序更新(2) 在为新的更新版本构建应用程序时,增加config.xml中的version no是否足够 widget id=“io.ionic.888”version=“0.0.1”xmlns=”http://www.w3.org/ns/widgets“xmlns:cdv=”http://cordova.apache.org/ns/1.0“您必须使用应用

我正在尝试发布我的第一款
爱奥尼亚应用程序
。我想知道用户是如何知道
PlayStore
中有一个新的更新的,他们是如何下载的

什么是爱奥尼亚原生应用程序更新(2)

在为新的更新版本构建应用程序时,增加
config.xml
中的
version no
是否足够


widget id=“io.ionic.888”version=“0.0.1”xmlns=”http://www.w3.org/ns/widgets“xmlns:cdv=”http://cordova.apache.org/ns/1.0“

您必须使用
应用程序更新插件来验证playstore是否提供更新

Repo: https://github.com/vaenow/cordova-plugin-app-update

$ ionic cordova plugin add cordova-plugin-app-update
$ npm install --save @ionic-native/app-update
您应该首先在服务器上承载一个XML文件,其中包含以下数据:

<update>
    <version>302048</version>
    <name>APK Name</name>
    <url>https://your-remote-api.com/YourApp.apk</url>
</update>

插件将比较应用程序版本,如果API有更新的版本要安装,则会提示更新。

如果您想在playstore上更新现有应用程序,则只需使用不同的版本进行上载,即如果您在playstore上使用
0.0.1
上载
0.0.2
,则您将进行更新。您的意思是我不想安装任何库到我的应用程序。我唯一要做的就是增加应用程序版本否?有用的问题@gunarathnedd你可以使用Ionic Native plugin应用程序更新在这里找到教程好的,然后到什么url,我必须把我的playstore apk url你的远程web服务器apk url:放在Update.xml文件中。对不起,我只把我的apk放在playstore中,不在远程web服务器中。我对XML
302048
感到困惑。如何定义版本?这是我和
一起使用的吗?如果是这样的话,如果我定义了一个新的更新,它会变成
1.0.1
?不要使用这个插件!Google play暂停使用此插件的应用程序github问题:
import { Component } from '@angular/core';
import { AppUpdate } from '@ionic-native/app-update';
import { Platform } from 'ionic-angular';


@Component({
    templateUrl: 'app.html'
})
export class MyApp {
    constructor(private appUpdate: AppUpdate) {
        this.platform.ready().then(() => {
            const updateUrl = 'https://your-remote-api.com/update.xml';
            this.appUpdate.checkAppUpdate(updateUrl).then(() => { console.log('Update available') });
        });
    }
}