Closed duduccosta closed 2 years ago
same issue existing my project
@duduccosta, @adsalihac have you already fixed your issues?
I had the same issue. In my case, the reason was that the AppCenter somehow cached the wrong (outdated) config. I changed CodePush deployment keys and reuse the same public/private .pem
code signing keys for a different project.
Then I checked both platforms and the Android issue was exactly this one:
[CodePush] Error in getting binary resources modified time
But I had a different issue on iOS:
[CodePush] The operation couldn’t be completed. (OSStatus error -67808 - RSA signature verification failed, no match)
Then I regenerate my .pem
signing keys (in my case it's the new project, so I don't care about supporting some versions with existing keys and code signing) and "Save" branch configuration one more time and build it.
Now everything is OK with code signing, deployment keys, and CodePush bundles.
@duduccosta
add this under android -> defaultConfig
resValue 'string', "CODE_PUSH_APK_BUILD_TIME", String.format("\"%d\"", System.currentTimeMillis())
the issue resolved, but I don't wanna use this
I need another way :(
This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.
bump. same here
Experiencing this issue as well.
I'm also seeing this... For me it's working in IOS but I'm seeing the exact same issue in Android, and the same sequence of logs as originally reported
This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.
This issue will now be closed because it hasn't had any activity for 15 days after stale. Please feel free to open a new issue if you still have a question/issue or suggestion.
where's the discussion on this problem?
I'm getting the same error. @hiunguyn workaround worked for me.
By the way @hiunguyn, why didn't you want to use this anyway? Is there a downside or limitation this resValue introduces?
@duduccosta adicione isso em android -> defaultConfig
resValue 'string', "CODE_PUSH_APK_BUILD_TIME", String.format("\"%d\"", System.currentTimeMillis())
o problema resolvido, mas não quero usar isso , preciso de outra maneira :(
That's soluction by PR #1961. Between, this is worked for me. 🚀
I got the error by creating "another" application and used the same CodePush key in the "new" application. (They have the same src/)
Old app: RN 0.66.1 New app: RN 0.70.5 On both: react-native-code-push@^7.0.4
I use CodePush CLI and it's at v3.0.0.
@duduccosta add this under android -> defaultConfig
resValue 'string', "CODE_PUSH_APK_BUILD_TIME", String.format("\"%d\"", System.currentTimeMillis())
the issue resolved, but I don't wanna use this I need another way :(
Thank you so much @hiunguyn !
well i got the same error and solved by commiting the string resources
Environment
I'm using the manual codepush feature. When I use codepish.sync and debug the update status, i'm getting, in this order:
5 - CHECKING_FOR_UPDATE 7 - DOWNLOADING_PACKAGE 3 - UNKNOWN_ERROR
And codepush write a log as: [CodePush] Error in getting binary resources modified time. I've done everything correctly. I already done: 'apply from: "../../node_modules/react-native-code-push/android/codepush.gradle"'
My App function export is:
The JSON return from codePush.checkForUpdate() is:
Need help, please.