Error on Android
Closed this issue · 4 comments
ziyafenn commented
Hi guys. Thanks for the awesome library.
I have no probs with it on iOS, however on Android i'm getting this error:
Got version info:
error: "Invalid Version: //play.google.com/">"
error: "Invalid Version: //play.google.com/">
I tried that with debug and release versions.
Is it a bug or i just need to test it on the app download from the market?
Thanks.
tschoffelen commented
Can you share a bit more of your code?
Cheers,
Thomas
ziyafenn commented
hey @tschoffelen, i used your example:
checkVersion()
.then(version => {
console.log("Got version info:", version);
if (version.needsUpdate) {
this.setState({ updateNeeded: true, storeURL: version.url })
}
})
.catch(e => {
// Error - could not get version info for some reason
console.log("Failed getting version info:", e);
});
console.log("Got version info:", version);
returns the described error on Android.
On ios all works well.
ziyafenn commented
@tschoffelen were you able to replicate this?
tschoffelen commented