Giter Site home page Giter Site logo

kungfu-king-betty / cordova-plugin-native-app-update Goto Github PK

View Code? Open in Web Editor NEW
11.0 3.0 17.0 91 KB

This is a cordova plugin to easily check the iOS App Store or Android Google Play Store for an available app update.

License: MIT License

Java 69.50% Objective-C 18.18% JavaScript 12.32%
cordova-plugin cordova-android cordova-ios update-checker app-store google-play-store cordova android ios ionic

cordova-plugin-native-app-update's People

Contributors

kungfu-king-betty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cordova-plugin-native-app-update's Issues

App Update Error, Not Checking The device version

Your Environment

  • Plugin version: 1.0.3
  • Platform: Android
  • OS version: Mac Os
  • Device manufacturer / model:
  • Cordova version (cordova -v): Cordova 10.0.0
  • Cordova platform version (cordova platform ls): Android 9.1.0 and iOS 6.2.0
  • Plugin config

Expected Behavior

Actual Behavior

I am getting this error
"java.lang.NumberFormatException: For input string: "Varies with device"
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
at sun.misc.FloatingDecimal.parseFloat(FloatingDecimal.java:122)
at java.lang.Float.parseFloat(Float.java:451)
at java.lang.Float.valueOf(Float.java:416)
at com.kungfukingbetty.cordova.appupdate.CDVAppUpdate.needsUpdate(CDVAppUpdate.java:185)
at com.kungfukingbetty.cordova.appupdate.CDVAppUpdate.execute(CDVAppUpdate.java:66)
at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:117)
at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:98)
at org.apache.cordova.PluginManager.exec(PluginManager.java:139)
at org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59)
at org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:335)
at android.os.Looper.loop(Looper.java:183)
at android.os.HandlerThread.run(HandlerThread.java:67)
"

Context

I am running this function on device ready
function checkForUpdate() {
window.AppUpdate.needsUpdate(function (updateObj) {
if (updateObj.update_available == 1) {
console.log("App Update Success:")
}
}, function (error) {
console.log("App Update ERROR:", error);
});
}

Debug logs

Malformed Url error when executing

Your Environment

  • Plugin version: 1.0.3
  • Platform: Android
  • OS version: 8.0.0
  • Device manufacturer / model: Samsung
  • Cordova version (cordova -v): 8.1.2
  • Cordova platform version (cordova platform ls): 8.0.0
  • Plugin config

Expected Behavior

Should check with needs update and show a dialog

Actual Behavior

gives error: java.lang.IllegalArgumentException: Malformed URL: null
at org.jsoup.helper.HttpConnection.url(HttpConnection.java:78)
at org.jsoup.helper.HttpConnection.connect(HttpConnection.java:38)
at org.jsoup.Jsoup.connect(Jsoup.java:73)
at com.kungfukingbetty.cordova.appupdate.CDVAppUpdate.needsUpdate(CDVAppUpdate.java:189)
at com.kungfukingbetty.cordova.appupdate.CDVAppUpdate.execute(CDVAppUpdate.java:66)
at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:117)
at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:98)
at org.apache.cordova.PluginManager.exec(PluginManager.java:132)
at org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59)
at org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:325)
at android.os.Looper.loop(Looper.java:142)
at android.os.HandlerThread.run(HandlerThread.java:65)
Caused by: java.net.MalformedURLException: no protocol: null
at java.net.URL.(URL.java:590)
at java.net.URL.(URL.java:487)
at java.net.URL.(URL.java:436)
at org.jsoup.helper.HttpConnection.url(HttpConnection.java:76)
... 13 more

Steps to Reproduce

  1. Just executes this code when opening app
    AppUpdate.needsUpdate(function(appUpdateObj) {
    if(appUpdateObj.update_available == 1) {
    console.log("There is New Version of this application available,Click Upgrade to Update now ?");
    navigator.notification.confirm("Hay verión nueva en la tienda, quieres actualizar tu aplicación?", onConfirm, "", ["Actualizar","Cancelar"]);
    }
    }, function(error){
    console.log("App Update ERROR:",error);
    });

Context

Check playstore verios

Debug logs

2021-08-02 12:40:19.440 12611-12611/com.tecnogeo.participa.ordino W/SELinux: SELinux selinux_android_compute_policy_index : Policy Index[2], Con:u:r:zygote:s0 RAM:SEPF_SM-G935F_8.0.0_0018, [-1 -1 -1 -1 0 1]
2021-08-02 12:40:19.441 12611-12611/com.tecnogeo.participa.ordino I/SELinux: SELinux: seapp_context_lookup: seinfo=untrusted, level=s0:c512,c768, pkgname=com.tecnogeo.participa.ordino
2021-08-02 12:40:19.446 12611-12611/com.tecnogeo.participa.ordino I/zygote64: Late-enabling -Xcheck:jni
2021-08-02 12:40:19.501 12611-12611/com.tecnogeo.participa.ordino D/ActivityThread: Added TimaKeyStore provider
2021-08-02 12:40:19.552 12611-12611/com.tecnogeo.participa.ordino I/zygote64: no shared libraies, dex_files: 1
2021-08-02 12:40:19.585 12611-12611/com.tecnogeo.participa.ordino I/MultiDex: VM with version 2.1.0 has multidex support
2021-08-02 12:40:19.585 12611-12611/com.tecnogeo.participa.ordino I/MultiDex: Installing application
2021-08-02 12:40:19.585 12611-12611/com.tecnogeo.participa.ordino I/MultiDex: VM has multidex support, MultiDex support library is disabled.
2021-08-02 12:40:19.591 12611-12611/com.tecnogeo.participa.ordino D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
2021-08-02 12:40:19.599 12611-12611/com.tecnogeo.participa.ordino D/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
2021-08-02 12:40:19.609 12611-12611/com.tecnogeo.participa.ordino I/FirebaseInitProvider: FirebaseApp initialization successful
2021-08-02 12:40:19.625 12611-12636/com.tecnogeo.participa.ordino I/FA: App measurement is starting up, version: 11720
2021-08-02 12:40:19.625 12611-12636/com.tecnogeo.participa.ordino I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
2021-08-02 12:40:19.625 12611-12636/com.tecnogeo.participa.ordino I/FA: To enable faster debug mode event logging run:
adb shell setprop debug.firebase.analytics.app com.tecnogeo.participa.ordino
2021-08-02 12:40:19.638 12611-12611/com.tecnogeo.participa.ordino I/CordovaLog: Changing log level to DEBUG(3)
2021-08-02 12:40:19.638 12611-12611/com.tecnogeo.participa.ordino I/CordovaActivity: Apache Cordova native platform version 8.0.0 is starting
2021-08-02 12:40:19.638 12611-12611/com.tecnogeo.participa.ordino D/CordovaActivity: CordovaActivity.onCreate()
2021-08-02 12:40:19.651 12611-12611/com.tecnogeo.participa.ordino I/zygote64: no shared libraies, dex_files: 1
2021-08-02 12:40:19.657 12611-12611/com.tecnogeo.participa.ordino I/WebViewFactory: Loading com.android.chrome version 92.0.4515.115 (code 451511523)
2021-08-02 12:40:19.705 12611-12611/com.tecnogeo.participa.ordino I/cr_WVCFactoryProvider: Loaded version=92.0.4515.115 minSdkVersion=24 isBundle=true multiprocess=true packageId=2
2021-08-02 12:40:19.737 12611-12611/com.tecnogeo.participa.ordino I/cr_LibraryLoader: Successfully loaded native library
2021-08-02 12:40:19.739 12611-12611/com.tecnogeo.participa.ordino I/cr_CachingUmaRecorder: Flushed 8 samples from 8 histograms.
2021-08-02 12:40:19.758 12611-12644/com.tecnogeo.participa.ordino W/ResourceType: Failure getting entry for 0x7f130796 (t=18 e=1942) (error -2147483647)
2021-08-02 12:40:19.846 12611-12611/com.tecnogeo.participa.ordino D/ConnectivityManager: requestNetwork; CallingUid : 10229, CallingPid : 12611
2021-08-02 12:40:19.895 12611-12611/com.tecnogeo.participa.ordino D/SystemWebViewEngine: CordovaWebView is running on device made by: samsung
2021-08-02 12:40:19.900 12611-12611/com.tecnogeo.participa.ordino D/PluginManager: init()
2021-08-02 12:40:19.915 12611-12611/com.tecnogeo.participa.ordino D/FileUtils: Unrecognized extra filesystem identifier: assets
2021-08-02 12:40:19.970 12611-12683/com.tecnogeo.participa.ordino D/OpenGLRenderer: HWUI GL Pipeline
2021-08-02 12:40:19.977 12611-12611/com.tecnogeo.participa.ordino D/ViewRootImpl@4a312d9[MainActivity]: setView = DecorView@603549e[] TM=true MM=false
2021-08-02 12:40:20.010 12611-12616/com.tecnogeo.participa.ordino I/zygote64: Do partial code cache collection, code=30KB, data=23KB
2021-08-02 12:40:20.010 12611-12616/com.tecnogeo.participa.ordino I/zygote64: After code cache collection, code=30KB, data=23KB
2021-08-02 12:40:20.010 12611-12616/com.tecnogeo.participa.ordino I/zygote64: Increasing code cache capacity to 128KB
2021-08-02 12:40:20.017 12611-12611/com.tecnogeo.participa.ordino D/ScrollView: initGoToTop
2021-08-02 12:40:20.024 12611-12611/com.tecnogeo.participa.ordino D/ScrollView: initGoToTop
2021-08-02 12:40:20.042 12611-12611/com.tecnogeo.participa.ordino D/ViewRootImpl@32015e0[MainActivity]: setView = DecorView@693c099[] TM=true MM=false
2021-08-02 12:40:20.050 12611-12611/com.tecnogeo.participa.ordino D/CordovaWebViewImpl: >>> loadUrl(file:///android_asset/www/index.html)
2021-08-02 12:40:20.059 12611-12667/com.tecnogeo.participa.ordino W/cr_media: Requires BLUETOOTH permission
2021-08-02 12:40:20.064 12611-12611/com.tecnogeo.participa.ordino D/CordovaActivity: Started the activity.
2021-08-02 12:40:20.085 12611-12611/com.tecnogeo.participa.ordino D/CordovaActivity: Resumed the activity.
2021-08-02 12:40:20.093 12611-12636/com.tecnogeo.participa.ordino I/FA: Tag Manager is not found and thus will not be used
2021-08-02 12:40:20.094 12611-12611/com.tecnogeo.participa.ordino D/ViewRootImpl@603e9d1[MainActivity]: setView = DecorView@98e6c36[MainActivity] TM=true MM=false
2021-08-02 12:40:20.106 12611-12686/com.tecnogeo.participa.ordino D/libGLESv2: STS_GLApi : DTS, ODTC are not allowed for Package : com.tecnogeo.participa.ordino
2021-08-02 12:40:20.144 12611-12611/com.tecnogeo.participa.ordino D/ViewRootImpl@4a312d9[MainActivity]: dispatchAttachedToWindow
2021-08-02 12:40:20.159 12611-12611/com.tecnogeo.participa.ordino V/Surface: sf_framedrop debug : 0x4f4c, game : false, logging : 0
2021-08-02 12:40:20.160 12611-12611/com.tecnogeo.participa.ordino D/ViewRootImpl@4a312d9[MainActivity]: Relayout returned: old=[0,0][0,0] new=[0,0][1080,1920] result=0x7 surface={valid=true 502749667328} changed=true
2021-08-02 12:40:20.161 12611-12683/com.tecnogeo.participa.ordino I/OpenGLRenderer: Initialized EGL, version 1.4
2021-08-02 12:40:20.168 12611-12683/com.tecnogeo.participa.ordino D/OpenGLRenderer: Swap behavior 2
2021-08-02 12:40:20.170 12611-12611/com.tecnogeo.participa.ordino D/ViewRootImpl@32015e0[MainActivity]: dispatchAttachedToWindow
2021-08-02 12:40:20.175 12611-12683/com.tecnogeo.participa.ordino D/libGLESv1: STS_GLApi : DTS, ODTC are not allowed for Package : com.tecnogeo.participa.ordino
2021-08-02 12:40:20.177 12611-12683/com.tecnogeo.participa.ordino D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000, [1080x1920]-format:1
2021-08-02 12:40:20.177 12611-12683/com.tecnogeo.participa.ordino D/OpenGLRenderer: eglCreateWindowSurface = 0x7522216ea0
2021-08-02 12:40:20.208 12611-12611/com.tecnogeo.participa.ordino V/Surface: sf_framedrop debug : 0x4f4c, game : false, logging : 0
2021-08-02 12:40:20.209 12611-12611/com.tecnogeo.participa.ordino D/ViewRootImpl@32015e0[MainActivity]: Relayout returned: old=[0,0][0,0] new=[27,924][1053,1068] result=0x27 surface={valid=true 502662139904} changed=true
2021-08-02 12:40:20.212 12611-12683/com.tecnogeo.participa.ordino D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000, [1218x336]-format:1
2021-08-02 12:40:20.212 12611-12683/com.tecnogeo.participa.ordino D/OpenGLRenderer: eglCreateWindowSurface = 0x7522216ef0
2021-08-02 12:40:20.237 12611-12611/com.tecnogeo.participa.ordino D/ViewRootImpl@603e9d1[MainActivity]: dispatchAttachedToWindow
2021-08-02 12:40:20.249 12611-12611/com.tecnogeo.participa.ordino V/Surface: sf_framedrop debug : 0x4f4c, game : false, logging : 0
2021-08-02 12:40:20.250 12611-12611/com.tecnogeo.participa.ordino D/ViewRootImpl@603e9d1[MainActivity]: Relayout returned: old=[0,0][0,0] new=[0,0][1080,1920] result=0x7 surface={valid=true 502662144000} changed=true
2021-08-02 12:40:20.262 12611-12683/com.tecnogeo.participa.ordino D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000, [1080x1920]-format:1
2021-08-02 12:40:20.262 12611-12683/com.tecnogeo.participa.ordino D/OpenGLRenderer: eglCreateWindowSurface = 0x7522216f40
2021-08-02 12:40:20.268 12611-12611/com.tecnogeo.participa.ordino D/ViewRootImpl@4a312d9[MainActivity]: MSG_WINDOW_FOCUS_CHANGED 1
2021-08-02 12:40:20.269 12611-12611/com.tecnogeo.participa.ordino V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@a891c21 nm : com.tecnogeo.participa.ordino ic=null
2021-08-02 12:40:20.269 12611-12611/com.tecnogeo.participa.ordino I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
2021-08-02 12:40:20.272 12611-12611/com.tecnogeo.participa.ordino D/ViewRootImpl@32015e0[MainActivity]: MSG_WINDOW_FOCUS_CHANGED 1
2021-08-02 12:40:20.276 12611-12611/com.tecnogeo.participa.ordino D/CordovaWebViewImpl: onPageDidNavigate(file:///android_asset/www/index.html)
2021-08-02 12:40:20.342 12611-12611/com.tecnogeo.participa.ordino D/ViewRootImpl@4a312d9[MainActivity]: MSG_RESIZED_REPORT: frame=Rect(0, 0 - 1080, 1920) ci=Rect(0, 72 - 0, 0) vi=Rect(0, 72 - 0, 0) or=1
2021-08-02 12:40:20.344 12611-12611/com.tecnogeo.participa.ordino D/ViewRootImpl@32015e0[MainActivity]: MSG_RESIZED_REPORT: frame=Rect(27, 924 - 1053, 1068) ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 0) or=1
2021-08-02 12:40:20.345 12611-12611/com.tecnogeo.participa.ordino D/ViewRootImpl@603e9d1[MainActivity]: MSG_RESIZED_REPORT: frame=Rect(0, 0 - 1080, 1920) ci=Rect(0, 72 - 0, 0) vi=Rect(0, 72 - 0, 0) or=1
2021-08-02 12:40:20.347 12611-12611/com.tecnogeo.participa.ordino V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@65faa2a nm : com.tecnogeo.participa.ordino ic=null
2021-08-02 12:40:20.364 12611-12611/com.tecnogeo.participa.ordino D/ViewRootImpl@4a312d9[MainActivity]: MSG_WINDOW_FOCUS_CHANGED 0
2021-08-02 12:40:20.466 12611-12611/com.tecnogeo.participa.ordino D/JsMessageQueue: Set native->JS mode to EvalBridgeMode
2021-08-02 12:40:20.475 12611-12611/com.tecnogeo.participa.ordino D/SystemWebChromeClient: file:///android_asset/www/js/libs/jquery-1.8.3.min.js: Line 2 : Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
2021-08-02 12:40:20.475 12611-12611/com.tecnogeo.participa.ordino I/chromium: [INFO:CONSOLE(2)] "Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.", source: file:///android_asset/www/js/libs/jquery-1.8.3.min.js (2)
2021-08-02 12:40:20.548 12611-12616/com.tecnogeo.participa.ordino I/zygote64: Do partial code cache collection, code=61KB, data=59KB
2021-08-02 12:40:20.548 12611-12616/com.tecnogeo.participa.ordino I/zygote64: After code cache collection, code=61KB, data=59KB
2021-08-02 12:40:20.548 12611-12616/com.tecnogeo.participa.ordino I/zygote64: Increasing code cache capacity to 256KB
2021-08-02 12:40:20.768 12611-12717/com.tecnogeo.participa.ordino D/NetworkManager: toLower : wifi
2021-08-02 12:40:20.768 12611-12717/com.tecnogeo.participa.ordino D/NetworkManager: wifi : wifi
2021-08-02 12:40:20.768 12611-12717/com.tecnogeo.participa.ordino D/NetworkManager: Connection Type: wifi
2021-08-02 12:40:20.768 12611-12717/com.tecnogeo.participa.ordino D/NetworkManager: Connection Extra Info: "ASUS_5G_47A1"
2021-08-02 12:40:20.791 12611-12611/com.tecnogeo.participa.ordino D/NetworkManager: toLower : wifi
2021-08-02 12:40:20.791 12611-12611/com.tecnogeo.participa.ordino D/NetworkManager: wifi : wifi
2021-08-02 12:40:20.791 12611-12611/com.tecnogeo.participa.ordino D/NetworkManager: Connection Type: wifi
2021-08-02 12:40:20.792 12611-12611/com.tecnogeo.participa.ordino D/NetworkManager: Connection Extra Info: "ASUS_5G_47A1"
2021-08-02 12:40:21.245 12611-12717/com.tecnogeo.participa.ordino I/App: WARNING: Back Button Default Behavior will be overridden. The backbutton event will be fired!
2021-08-02 12:40:21.254 12611-12611/com.tecnogeo.participa.ordino D/CordovaWebViewImpl: onPageFinished(file:///android_asset/www/index.html)
2021-08-02 12:40:21.265 12611-12718/com.tecnogeo.participa.ordino W/AssetFilesystem: Asset manifest not found. Recursive copies and directory listing will be slow.
2021-08-02 12:40:21.337 12611-12611/com.tecnogeo.participa.ordino D/SystemWebChromeClient: file:///android_asset/www/js/all.js: Line 576 : https://participa.absiscloud.com/ParticipaDevices/RegisterDevice/roleDevice/
2021-08-02 12:40:21.337 12611-12611/com.tecnogeo.participa.ordino I/chromium: [INFO:CONSOLE(576)] "https://participa.absiscloud.com/ParticipaDevices/RegisterDevice/roleDevice/", source: file:///android_asset/www/js/all.js (576)
2021-08-02 12:40:21.343 12611-12611/com.tecnogeo.participa.ordino D/SystemWebChromeClient: file:///android_asset/www/js/all.js: Line 577 : Ordinoesviu
2021-08-02 12:40:21.343 12611-12611/com.tecnogeo.participa.ordino I/chromium: [INFO:CONSOLE(577)] "Ordinoesviu", source: file:///android_asset/www/js/all.js (577)
2021-08-02 12:40:21.346 12611-12611/com.tecnogeo.participa.ordino D/SystemWebChromeClient: file:///android_asset/www/js/all.js: Line 578 : Information response parameters: https://participa.absiscloud.com/ParticipaDevices/RegisterDevice/roleDevice/product=Participa&idPlatformApp=2&idDevice=d942bde9-86bd-4ef8-8ee5-85ca240d5943
2021-08-02 12:40:21.346 12611-12611/com.tecnogeo.participa.ordino I/chromium: [INFO:CONSOLE(578)] "Information response parameters: https://participa.absiscloud.com/ParticipaDevices/RegisterDevice/roleDevice/product=Participa&idPlatformApp=2&idDevice=d942bde9-86bd-4ef8-8ee5-85ca240d5943", source: file:///android_asset/www/js/all.js (578)
2021-08-02 12:40:21.546 12611-12673/com.tecnogeo.participa.ordino D/NetworkSecurityConfig: No Network Security Config specified, using platform default
2021-08-02 12:40:21.846 12611-12717/com.tecnogeo.participa.ordino V/NativeAppUpdate: Init NativeAppUpdate
2021-08-02 12:40:21.848 12611-12717/com.tecnogeo.participa.ordino V/NativeAppUpdate: NativeAppUpdate action: needsUpdate
2021-08-02 12:40:21.849 12611-12611/com.tecnogeo.participa.ordino D/SystemWebChromeClient: file:///android_asset/www/js/all.js: Line 583 : PRO
2021-08-02 12:40:21.849 12611-12611/com.tecnogeo.participa.ordino I/chromium: [INFO:CONSOLE(583)] "PRO", source: file:///android_asset/www/js/all.js (583)
2021-08-02 12:40:21.852 12611-12611/com.tecnogeo.participa.ordino D/SystemWebChromeClient: file:///android_asset/www/js/all.js: Line 591 : PRO
2021-08-02 12:40:21.853 12611-12611/com.tecnogeo.participa.ordino I/chromium: [INFO:CONSOLE(591)] "PRO", source: file:///android_asset/www/js/all.js (591)
2021-08-02 12:40:21.888 12611-12717/com.tecnogeo.participa.ordino I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
2021-08-02 12:40:21.890 12611-12717/com.tecnogeo.participa.ordino I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
2021-08-02 12:40:22.876 12611-12616/com.tecnogeo.participa.ordino I/zygote64: Do full code cache collection, code=124KB, data=105KB
2021-08-02 12:40:22.876 12611-12616/com.tecnogeo.participa.ordino I/zygote64: After code cache collection, code=111KB, data=60KB
2021-08-02 12:40:22.983 12611-12616/com.tecnogeo.participa.ordino I/zygote64: Do partial code cache collection, code=115KB, data=75KB
2021-08-02 12:40:22.983 12611-12616/com.tecnogeo.participa.ordino I/zygote64: After code cache collection, code=115KB, data=75KB
2021-08-02 12:40:22.983 12611-12616/com.tecnogeo.participa.ordino I/zygote64: Increasing code cache capacity to 512KB
2021-08-02 12:40:23.061 12611-12717/com.tecnogeo.participa.ordino D/NativeAppUpdate: Current version: 1.4.0, Play Store version: 1.7.0
2021-08-02 12:40:23.062 12611-12717/com.tecnogeo.participa.ordino E/NativeAppUpdate: java.lang.IllegalArgumentException: Malformed URL: null
at org.jsoup.helper.HttpConnection.url(HttpConnection.java:78)
at org.jsoup.helper.HttpConnection.connect(HttpConnection.java:38)
at org.jsoup.Jsoup.connect(Jsoup.java:73)
at com.kungfukingbetty.cordova.appupdate.CDVAppUpdate.needsUpdate(CDVAppUpdate.java:189)
at com.kungfukingbetty.cordova.appupdate.CDVAppUpdate.execute(CDVAppUpdate.java:66)
at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:117)
at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:98)
at org.apache.cordova.PluginManager.exec(PluginManager.java:132)
at org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59)
at org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:325)
at android.os.Looper.loop(Looper.java:142)
at android.os.HandlerThread.run(HandlerThread.java:65)
Caused by: java.net.MalformedURLException: no protocol: null
at java.net.URL.(URL.java:590)
at java.net.URL.(URL.java:487)
at java.net.URL.(URL.java:436)
at org.jsoup.helper.HttpConnection.url(HttpConnection.java:76)
at org.jsoup.helper.HttpConnection.connect(HttpConnection.java:38) 
at org.jsoup.Jsoup.connect(Jsoup.java:73) 
at com.kungfukingbetty.cordova.appupdate.CDVAppUpdate.needsUpdate(CDVAppUpdate.java:189) 
at com.kungfukingbetty.cordova.appupdate.CDVAppUpdate.execute(CDVAppUpdate.java:66) 
at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:117) 
at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:98) 
at org.apache.cordova.PluginManager.exec(PluginManager.java:132) 
at org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59) 
at org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41) 
at android.os.MessageQueue.nativePollOnce(Native Method) 
at android.os.MessageQueue.next(MessageQueue.java:325) 
at android.os.Looper.loop(Looper.java:142) 
at android.os.HandlerThread.run(HandlerThread.java:65) 
2021-08-02 12:40:23.063 12611-12717/com.tecnogeo.participa.ordino W/CordovaPlugin: Attempted to send a second callback for ID: AppUpdate884075538
Result was: "Error"

com.google.android.play:core:1.10.0 incompatibility with Android 14

Your Environment

  • Plugin version: 2.0.0
  • Platform: Android
  • OS version: 14
  • Device manufacturer / model: Any
  • Cordova version (cordova -v): 12.0.0
  • Cordova platform version (cordova platform ls): 13.0.0

Actual Behavior

Google Play Store not finding an incompatibility in the SDK with Android API 34 by updating to the latest Play Core library version dependency to avoid app crashes : https://developer.android.com/guide/playcore#playcore-migration

Expected Behavior

Google Play Store finding an incompatibility in the SDK with Android API 34 because of com.google.android.play:core:1.10.0 defined in the build.gradle file.

Steps to Reproduce

  1. Create a cordova app with this plugin
  2. Build and upload an Android app to Google Play Store
  3. Be shown below warning when trying to release the app.
error-play-store

Context

Create and upload Android app with this plugin to the Google Play Store.

Non-void function does not return a value - XCode

Your Environment

  • Plugin version: 1.0.2
  • Platform: iOS
  • OS version: 14
  • Device manufacturer / model: Apple
  • Cordova version (cordova -v): Using Capacitor v3
  • Cordova platform version (cordova platform ls): Using Capacitor v3
  • Plugin config

Expected Behavior

Building project in XCode I get the error 'Non-void function does not return a value' line 68 in CDVAppUpdate.m

Actual Behavior

Should return a value? Or compile/build

Steps to Reproduce

  1. Create capacitor 3 project and add ios platform
  2. npm i cordova-plugin-native-app-update
  3. npx cap sync
  4. npx cap open ios
  5. Select run / build. Build fails

Context

Use plugin to check for app update on app store. I understand I'm not using this in a cordova project but Capacitor supports Cordova plugins. I suspect the needsUpdate method just needs to return a boolean?

Screenshot 2021-05-14 at 3 27 09 PM

Debug logs

iOS : bad version comparison ?

Error

It's not really an error (the app not crashed) but the plugin tell me that an update exists on the App Store, but it's not the case.

Am I the only one to notice this? Thanks for your help !

Context

I already have my app on the App Store with 2.3.1 as version name and 40 as bundle version.

I created a new version of the same app : 2.4.0 as version name and 42 as bundle version.

When I launched the app, the plugin detect the good versions (2.3.1 on the Play Store, 2.4.0 for the current version) but say me that an update is required despite the fact that the current version is superior to the version on the store.

Steps to Reproduce

  1. Already have an app ont the App Store
  2. Create a new version of the ios app with the cordova-plugin-native-app-update
  3. launch the app and look what the plugin returns.
  4. In my case, appUpdateObj.update_available is true even if the new version name is not inferior of the version on the app store.

Your Environment

  • Plugin version: 2.0.0
  • Platform: iOS
  • OS version: tested on iOS 16 & 17
  • Device manufacturer / model: iPhone SE (3rd generation)
  • Cordova version (cordova -v): 12.0.0
  • Cordova platform version (cordova platform ls): 7.0.1 (I also tested on version 6.3.0 of iOS Cordova platform version)

"App Update Check Failed" during development

Error

Regardless if there is an update available, calling needsUpdate always returns "App Update Check Failed"

Your Environment

  • Plugin version: latest
  • Platform: Android

Workaround

Stack Overflow Answer

tl;dr: test via the internal test track. Maybe going forward this plugin could check if updates can actually be fetched and return a more detailed error.

AppUpdate is not defined

Error

appenelRun.js:93 Uncaught ReferenceError: AppUpdate is not defined
at appenelRun.js:93
at Array. (ionic.bundle.js:56230)
at onPlatformReady (ionic.bundle.js:2496)
at onWindowLoad (ionic.bundle.js:2477)

Uncaught ReferenceError: AppUpdate is not defined

Context

I want to use the plugin in my project.

I need users to start the APP to show them a message to update the application.

Please your support to know how to use the plugin with the environment that I have my project.

Steps to Reproduce

  1. Install the plugin.
  2. Copy the example here.
  3. But I get the indicated error.

Your Environment

  • Plugin version: 2.0.0
  • Platform: iOS and Android
  • OS version: Mac Big Sur
  • Device manufacturer / model: --
  • Cordova version (cordova -v): 8.1.2 ([email protected])
  • Cordova platform version (cordova platform ls): Installed platforms:
    android 6.4.0
    ios 5.0.0
  • IONIC version: 3.20.1
  • ANGULARJS: 1.0.0

Android 8 update dont work

Error

Context

update dont work

Steps to Reproduce

function dont show error and no access method
1.
2.

Your Environment

  • Plugin version:
  • Platform: androin
  • OS 8:
  • Device manufacturer / j4 sansung:
  • Cordova version (11):
  • Cordova platform version (cordova platform ls):

com.google.android.play:core:1.7.1 security vulnerability

Your Environment

  • Plugin version: 1.0.1
  • Platform: Android
  • OS version: 11
  • Device manufacturer / model: Any
  • Cordova version (cordova -v): 10.0.0
  • Cordova platform version (cordova platform ls): Android 9.0.0
  • Plugin config

Expected Behavior

Google Play Store not finding a security vulnerability in the SDK

Actual Behavior

Google Play Store finding a security vulnerability in the SDK because of com.google.android.play:core:1.7.1 defined in the build.gradle file.

Steps to Reproduce

  1. Create a cordova app with this plugin
  2. Build and upload an Android app to Google Play Store
  3. Be shown below warning when trying to release the app.
    4b633e2a-5922-46e9-9385-44b1e38aeaf5

Context

Create and upload Android app with this plugin to the Google Play Store

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.