Code Monkey home page Code Monkey logo

cordova-plugin-update-notifier's People

Contributors

aquinn637 avatar dpogue avatar isuda avatar jeff2013 avatar szh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

cordova-plugin-update-notifier's Issues

Android API 34 compatibility

Need to upgrade to at least version 2.1.0 of the Google Play Core library, otherwise the app will crash on launch

How to keep SyrenAlert preference after capacitor sync

Hi guys,

I'm using capacitor with Angular and I have added <preference name="SirenAlertType" value="critical" /> to the config.xml file inside the ios folder, but the issue I have is every time I run: npx cap sync, that config.xml file is rewritten, and the preference tag is removed.

Is there anyway to keep the preference tag after a sync or copy?

Here my config.xml file:

<?xml version='1.0' encoding='utf-8'?>
<widget version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
  <access origin="*" />
  
  <feature name="IosDisableBounce">
    <param name="ios-package" value="CDVIosDisableBounce"/>
  </feature>

  <feature name="UpdateNotifier">
    <param name="ios-package" value="CDVUpdateNotifierPlugin"/>
    <param name="onload" value="true"/>
  </feature>

  <preference name="SirenAlertType" value="critical" /> --> After sync this line is removed
  
</widget>

Wait to hear from you,
Abner

iOS Siren update for Notfication Center use case

Hello

In june 2022 https://github.com/ArtSabintsev/Siren/releases/tag/6.0.3 was fixed

Cocoapods says swift 5.5 does receive updates : https://cocoapods.org/pods/Siren#installation-and-integration

in plugin.xml there is 5.0

How can we guarantee to use Siren >= 6.0.3 ?

thanks

<platform name="ios">
    <config-file parent="/*" target="config.xml">
      <feature name="UpdateNotifier">
        <param name="ios-package" value="CDVUpdateNotifierPlugin" />
        <param name="onload" value="true" />
      </feature>

      <preference name="SwiftVersion" value="5.0" />
    </config-file>

    <source-file src="src/ios/UpdateNotifierPlugin.swift" />

    <podspec>
      <config></config>
      <pods use-frameworks="true">
        <pod name="Siren" />
      </pods>
    </podspec>
  </platform>

Error while building for iOS simulator

I am getting error while building for simulator.

  • Only classes that inherit from NSObject can be declared @objc
  • Cannot find type 'CDVPlugin' in scope
  • Method does not override any method from its superclass
  • Value of type 'UpdateNotifierPlugin' has no member 'commandDelegate'

how to use for ios - Siren error

I have a project written in Cordova, AngularJS, and Ionic v1.


ionic info

Ionic:
   Ionic CLI         : 5.4.16 (/Users/aubrey/node_modules/ionic)
   Ionic Framework   : ionic1 1.3.5
   @ionic/v1-toolkit : 1.0.22

Cordova:
   Cordova CLI       : 8.1.2 ([email protected])
   Cordova Platforms : android 8.1.0, ios 6.1.0
   Cordova Plugins   : no whitelisted plugins (17 plugins total)

Utility:
   cordova-res : 0.15.1
   native-run  : 1.0.0

System:
   Android SDK Tools : 26.1.1 (/usr/local/share/android-sdk)
   ios-deploy        : 1.10.0
   ios-sim           : 8.0.2
   NodeJS            : v10.19.0 (/usr/local/Cellar/node@10/10.19.0/bin/node)
   npm               : 6.13.4
   OS                : macOS Catalina
   Xcode             : Xcode 11.7 Build version 11E801a

When I run the command cordova build ios --release

I'm getting this error:

ndex/Self\ Service.build/Release-iphonesimulator/Self\ Service.build/DerivedSources-normal/x86_64 -Xcc -I/Users/aubrey/Library/Developer/Xcode/DerivedData/Self_Service-axfyqgowigbqrkafuwoghjkcotbz/Build/Intermediates.noindex/Self\ Service.build/Release-iphonesimulator/Self\ Service.build/DerivedSources/x86_64 -Xcc -I/Users/aubrey/Library/Developer/Xcode/DerivedData/Self_Service-axfyqgowigbqrkafuwoghjkcotbz/Build/Intermediates.noindex/Self\ Service.build/Release-iphonesimulator/Self\ Service.build/DerivedSources -Xcc -DWK_WEB_VIEW_ONLY=1 -Xcc -DWK_WEB_VIEW_ONLY=1 -import-objc-header /Users/aubrey/Documents/Repos/SelfServiceApp/platforms/ios/Self\ Service/Bridging-Header.h -pch-output-dir /Users/aubrey/documents/repos/selfserviceapp/platforms/ios/build/sharedpch -pch-disable-validation -parse-as-library -module-name Self_Service -o /Users/aubrey/Library/Developer/Xcode/DerivedData/Self_Service-axfyqgowigbqrkafuwoghjkcotbz/Build/Intermediates.noindex/Self\ Service.build/Release-iphonesimulator/Self\ Service.build/Objects-normal/x86_64/UpdateNotifierPlugin.o

/Users/aubrey/Documents/Repos/SelfServiceApp/platforms/ios/Self Service/Plugins/cordova-plugin-update-notifier/UpdateNotifierPlugin.swift:17:8: error: no such module 'Siren'

import Siren

       ^



** BUILD FAILED **





The following build commands failed:

	CompileSwift normal x86_64 /Users/aubrey/Documents/Repos/SelfServiceApp/platforms/ios/Self\ Service/Plugins/cordova-plugin-update-notifier/UpdateNotifierPlugin.swift

	CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler

(2 failures)

xcodebuild: Command failed with exit code 65

[ERROR] An error occurred while running subprocess cordova.

        

        cordova build ios --release exited with exit code 65.

        

        Re-running this command with the --verbose flag may provide more information.

aubrey@Softworkss-MacBook-Pro selfserviceapp % pod install

How can I import Siren?

Workaround to compile with monaca.io

Tried to compile android package using monaca but unsuccessful because monaca is using Gradle 6.5 . If you facing the same issues, try to change google material to 1.5.0-alpha02 .

change line 66 in plugin.xml to :

This one work for me..

iOS xArchives getting extremly large

Plugin: v2.0.1
Cordova: v11.0.0
ios-cordova: v6.3.0

We´ve been using the plugin since a couple of months.
Since our last build the the xArchives are getting extremly large.
xArchive with your Plugin installed: 230 MB
xArchive without your plugin: 32MB

Do you have any Idea what is causing this change? Is it the siren-framework?

Please update documentation on how to use the plugin

Currently, this plugin is not much documented, For a Junior Developer like me, if the plugin has good documentation it would be easy to use.
Can you please document it properly ? Like how to use In App Updates ? How to use Flexible & Immediate updates using this plugin ?

Application crashes after downloading the update

So here s the problem, after installing the plugin and running the application i get the new version is available, i click on install, the new version start downloading, but right after is finishes the application crashes. After looking in the logs i discovered the folowing error
E/AndroidRuntime: FATAL EXCEPTION: main Process: xxx.xxx.xxx , PID: 25586 java.lang.RuntimeException: Error receiving broadcast Intent { act=com.google.android.play.core.install.ACTION_INSTALL_STATUS flg=0x40000010 pkg=xxx.xxx.xxx (has extras) } in com.google.android.play.core.listener.a@3fced1a at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$-android_app_LoadedApk$ReceiverDispatcher$Args_52226(LoadedApk.java:1329) at android.app.-$Lambda$FilBqgnXJrN9Mgyks1XHeAxzSTk.$m$0(Unknown Source:4) at android.app.-$Lambda$FilBqgnXJrN9Mgyks1XHeAxzSTk.run(Unknown Source:0) at android.os.Handler.handleCallback(Handler.java:789) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6944) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374) Caused by: android.view.InflateException: Binary XML file line #26: Binary XML file line #26: Error inflating class <unknown> Caused by: android.view.InflateException: Binary XML file line #26: Error inflating class <unknown> Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Constructor.newInstance0(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:334) at android.view.LayoutInflater.createView(LayoutInflater.java:647) at com.android.internal.policy.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:58) at android.view.LayoutInflater.onCreateView(LayoutInflater.java:720) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:788) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730) at android.view.LayoutInflater.rInflate(LayoutInflater.java:863) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824) at android.view.LayoutInflater.inflate(LayoutInflater.java:515) at android.view.LayoutInflater.inflate(LayoutInflater.java:423) at com.google.android.material.snackbar.Snackbar.make(Snackbar.java:188) at com.ayogo.cordova.updatenotifier.UpdateNotifierPlugin$3.run(UpdateNotifierPlugin.java:150) at android.app.Activity.runOnUiThread(Activity.java:6281) at com.ayogo.cordova.updatenotifier.UpdateNotifierPlugin.popupSnackbarForCompleteUpdate(UpdateNotifierPlugin.java:144) at com.ayogo.cordova.updatenotifier.UpdateNotifierPlugin.access$000(UpdateNotifierPlugin.java:41) at com.ayogo.cordova.updatenotifier.UpdateNotifierPlugin$1.onStateUpdate(UpdateNotifierPlugin.java:68) at com.ayogo.cordova.updatenotifier.UpdateNotifierPlugin$1.onStateUpdate(UpdateNotifierPlugin.java:64) at com.google.android.play.core.listener.b.i(Unknown Source:24) at com.google.android.play.core.appupdate.a.a(Unknown Source:182) at com.google.android.play.core.listener.a.onReceive(Unknown Source:2) at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$-android_app_LoadedApk$ReceiverDispatcher$Args_52226(LoadedApk.java:1319) at android.app.-$Lambda$FilBqgnXJrN9Mgyks1XHeAxzSTk.$m$0(Unknown Source:4) at android.app.-$Lambda$FilBqgnXJrN9Mgyks1XHeAxzSTk.run(Unknown Source:0) at android.os.Handler.handleCallback(Handler.java:789) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6944) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374) Caused by: java.lang.UnsupportedOperationException: Failed to resolve attribute at index 6: TypedValue{t=0x2/d=0x101009b a=1} at android.content.res.TypedArray.getColorStateList(TypedArray.java:538) at android.widget.TextView.<init>(TextView.java:1255) at android.widget.TextView.<init>(TextView.java:1145) at android.widget.TextView.<init>(TextView.java:1141) at java.lang.reflect.Constructor.newInstance0(Native Method)  at java.lang.reflect.Constructor.newInstance(Constructor.java:334)  at android.view.LayoutInflater.createView(LayoutInflater.java:647)  at com.android.internal.policy.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:58)  at android.view.LayoutInflater.onCreateView(LayoutInflater.java:720)  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:788)  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)  at android.view.LayoutInflater.rInflate(LayoutInflater.java:863)  at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)  at android.view.LayoutInflater.inflate(LayoutInflater.java:515)  at android.view.LayoutInflater.inflate(LayoutInflater.java:423)  at com.google.android.material.snackbar.Snackbar.make(Snackbar.java:188)  at com.ayogo.cordova.updatenotifier.UpdateNotifierPlugin$3.run(UpdateNotifierPlugin.java:150)  at android.app.Activity.runOnUiThread(Activity.java:6281)  at com.ayogo.cordova.updatenotifier.UpdateNotifierPlugin.popupSnackbarForCompleteUpdate(UpdateNotifierPlugin.java:144)  at com.ayogo.cordova.updatenotifier.UpdateNotifierPlugin.access$000(UpdateNotifierPlugin.java:41)  at com.ayogo.cordova.updatenotifier.UpdateNotifierPlugin$1.onStateUpdate(UpdateNotifierPlugin.java:68)  at com.ayogo.cordova.updatenotifier.UpdateNotifierPlugin$1.onStateUpdate(UpdateNotifierPlugin.java:64)  at com.google.android.play.core.listener.b.i(Unknown Source:24)  at com.google.android.play.core.appupdate.a.a(Unknown Source:182)  at com.google.android.play.core.listener.a.onReceive(Unknown Source:2)  at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$-android_app_LoadedApk$ReceiverDispatcher$Args_52226(LoadedApk.java:1319)  at android.app.-$Lambda$FilBqgnXJrN9Mgyks1XHeAxzSTk.$m$0(Unknown Source:4)  at android.app.-$Lambda$FilBqgnXJrN9Mgyks1XHeAxzSTk.run(Unknown Source:0)  at android.os.Handler.handleCallback(Handler.java:789)  at android.os.Handler.dispatchMessage(Handler.java:98)  at android.os.Looper.loop(Looper.java:164)  at android.app.ActivityThread.main(ActivityThread.java:6944)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374) 

I am using cordova 10.0.0 with android 9.0.0 with these plugins
"cordova-plugin-splashscreen": {}, "cordova-plugin-geolocation": {}, "cordova-plugin-device": {}, "cordova-plugin-network-information": {}, "cordova-plugin-brightness": {}, "cordova-plugin-firebasex": { "FIREBASE_ANALYTICS_COLLECTION_ENABLED": "true", "FIREBASE_PERFORMANCE_COLLECTION_ENABLED": "true", "FIREBASE_CRASHLYTICS_COLLECTION_ENABLED": "true", "ANDROID_ICON_ACCENT": "#DD0332", "ANDROID_PLAY_SERVICES_TAGMANAGER_VERSION": "17.0.0", "ANDROID_FIREBASE_ANALYTICS_VERSION": "17.2.1", "ANDROID_FIREBASE_MESSAGING_VERSION": "20.0.0", "ANDROID_FIREBASE_CONFIG_VERSION": "19.0.3", "ANDROID_FIREBASE_PERF_VERSION": "19.0.1", "ANDROID_FIREBASE_AUTH_VERSION": "19.1.0", "ANDROID_CRASHLYTICS_VERSION": "2.10.1", "ANDROID_CRASHLYTICS_NDK_VERSION": "2.1.1" }, "cordova-plugin-whitelist": {}, "cordova-plugin-update-notifier": {}
`
So the question is, does this plugin require somekind of permission? Does it require some additional configuration? maybe both?

Cant build with cordova

Not sure if this line (cdvMinSdkVersion is overridden si good)?

Configure project :CordovaLib
[Cordova] cdvMinSdkVersion is overridden, try it at your own risk.

Task :app:processDebugResources FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:processDebugResources'.

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
Android resource linking failed

Possible missing dependencies for Android

cordova: 11
cordova-android: 10.1.1
plugin: 2.0.1

It seems like having this plugin alone didn't install the required dependencies to do Android in-app updates.
I can see the update on the play store, but the app itself doesn't react.

I only got it to prompt by installing another plugin with a build.gradle defined to load the google play core library.
https://github.com/kungfu-king-betty/cordova-plugin-native-app-update/blob/master/src/android/build.gradle

Following the exact steps, I only get the update notifier if I have the above plugin installed.

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.