-
Notifications
You must be signed in to change notification settings - Fork 333
[android] FATAL EXCEPTION: decoding JWT token (when installing signed update) #613
Comments
This also just started affecting one of my apps, did a CodePush update over the weekend and woke up to a tonne of crash reports and angry users. It appears to be caused by the changes in #601 This is a pretty major issue, and it's rather disappointing that changes get released with apparently no testing on actual devices. |
Same issue. As @dpogue said, the only fix was downgrading to 1.12.1. |
Hi all, Unfortunately, I can't reproduce this issue. Could you please provide some demo app with reproducing issue and reprosteps? I would like to reproduce and investigate it. |
@alexandergoncharov I can also validate via #648 |
Hi there! For this issue we created a new branch with a workaround: https://github.com/microsoft/cordova-plugin-code-push/tree/fix-signed-bundles-crashes. To install the latest version from this branch, you can use: Thanks, |
@Krasavinigor - Can you explain why this was done with a new branch, as opposed to an update to the main repo and a new release/update? Is this something that only impacts some apps, and thus only some people will need this new branch? |
Hi @brassier! Sorry for the late response. Thanks, |
Since #601 I have to undo that changes every re-add Android platform... |
@Krasavinigor I typically use |
@jacksonkr |
The Specifically I'm getting the xcode output of |
Hi, Was there any further update on this issue? I am facing the same with the latest version. Following is my plugin list.
Exception from android studio:
|
Description
Expected a fine restart after download and install succeeded.
All was working fine with
[email protected]
and started to crash with[email protected]
. Really weird because error is raised in native codeSignedJWT.parse(jwt)
.Crashes after restart and can't start again, entering in a crash loop with following error:
Reproduction
I've tried to place this logs on
CodePush.java
:With following result:
So it prints first log but not second one neither the third one. Strange thing because
SignedJWT.parse(jwt)
is inside atry{} catch {}
block, but app crashes...I've tried to verify the jwt token with https://jwt.io/ and it seems the token can be parsed, content seems fine and the signature is valid.
I've tried to remove
cordova-plugin-push
and install again with no success.I've tried to remove signature at all, recompile app and it works fine.
Also getting lots of this:
I suppose one for each install intent.
Additional Information
cordova-plugin-code-push version: 1.12.2
List of installed plugins:
code-push 3.0.1 "CodePushAcquisition"
cordova-play-services-version-adapter 1.0.2 "Cordova/Ionic Google Play Services Versions Incompatibility Adapter"
cordova-plugin-advanced-http 2.4.1 "Advanced HTTP plugin"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-appcenter-analytics 0.5.1 "App Center Analytics for Cordova"
cordova-plugin-appcenter-shared 0.5.1 "App Center shared code for Cordova"
cordova-plugin-apprate 1.5.0 "AppRate"
cordova-plugin-background-mode 0.7.3 "BackgroundMode"
cordova-plugin-badge 0.8.8 "Badge"
cordova-plugin-code-push 1.12.2 "CodePush"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-dialogs 2.0.1 "Notification"
cordova-plugin-file 6.0.2 "File"
cordova-plugin-file-transfer 1.6.3 "File Transfer"
cordova-plugin-geolocation 4.0.2 "Geolocation"
cordova-plugin-googleplus 7.0.1 "Google SignIn"
cordova-plugin-health 1.0.5 "Cordova Health"
cordova-plugin-inappbrowser 3.2.0 "InAppBrowser"
cordova-plugin-ionic-keyboard 2.1.2 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 4.1.3 "cordova-plugin-ionic-webview"
cordova-plugin-iosrtc 6.0.9 "iosrtc"
cordova-plugin-local-notification 0.9.0-beta.2 "LocalNotification"
cordova-plugin-localization-strings 3.2.1 "Localization"
cordova-plugin-media 5.0.3 "Media"
cordova-plugin-nativestorage 2.3.2 "NativeStorage"
cordova-plugin-network-information 2.0.1 "Network Information"
cordova-plugin-screen-orientation 3.0.1 "Screen Orientation"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.3 "StatusBar"
cordova-plugin-vibration 3.1.1 "Vibration"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-plugin-zip 3.1.0 "cordova-plugin-zip"
cordova-sqlite-storage 3.2.0 "Cordova sqlite storage plugin - cordova-sqlite-storage plugin version"
cordova-support-google-services 1.1.0 "cordova-support-google-services"
es6-promise-plugin 4.2.2 "Promise"
phonegap-plugin-media-recorder 1.1.0 "Media Recorder"
phonegap-plugin-media-stream 1.2.1 "MediaStream"
phonegap-plugin-multidex 1.0.0 "Multidex"
phonegap-plugin-push 2.2.3 "PushPlugin"
Cordova version: android 8.1.0
iOS/Android/Windows version: Android 6.0.1
Does this reproduce on a debug build or release build? Both build and release
Does this reproduce on a simulator, or only on a physical device? Physical device
The text was updated successfully, but these errors were encountered: