Closed abhayastudios closed 5 years ago
You're right this is indeed a bug too. :( The expected behaviour is for the platform store to be open at the app apge (see this line) Unfortunately I don't work on Nativescript apps at the moment. I'll try to give a look, but I have a hard time finding time for that. In the meantime if you ever found anything or a hint, don't hesitate to post it here. Sorry about that.
I stand corrected! As it turns out, v1.0.2 opens the AppStore just fine on iOS. I might have tried it on the iOS simulator which of course doesn't have access to the AppStore...
By the way, I saw that the config already allows for defining an onConfirmed
function, which could be cool in case people want to take a different course of action. May I suggest it is added to the docs?
Cheers!
That's a good news, thanks for reporting back!
Regarding the onConfirm
, The config in the common contains it but we, for now, override it in platforms specific code. That's why we don't document it at the moment :)
But what we would like to do in the future is to expose more things like this onConfirm, and callbacks for the different cases (Major,Minor,Patch) of update. This way you can really customize how your app behaves.
So I got the plugin to detect a newer version in the Apple Store, triggering the dialog showing a
Skip
andUpdate
button. However, if I tapUpdate
nothing happens. I also tried the demo project which has the same behavior.Is this the intended behavior or am I missing something? Is there a proper way to catch a tap on the
Update
and somehow tigger opening the AppStore?Thanks!