Open dlaudh opened 6 years ago
same problem here. It only occurs in the release build though.
@Mobiletainment how sure are you? Do you have any proof?
Add more detail of code
[alertController addAction:[UIAlertAction actionWithTitle:[buttons objectAtIndex:n] style:UIAlertActionStyleDefault handler:^(UIAlertAction * action)
In Objetive-C broken in this line
Thanks
Hello guys, I solve this problem downloading version to @1.2.0
Regrads
For me the same :/
http://prntscr.com/k0t55l
But it works on iOS 10.3 and not on iOS 11.4....
Any news with this issue?
Downgrade to 1.2.0 - also doesn't work at all, and xCode doesn't give any exceptions, like with latest(1.4.0) version
On Android didn't test.
Hi @kurtiev,
On android it does not matter the version works perfectly it's only on ios.
My solution does not work, sorry
@DualH let to know please, if you will find alternative solution. Thanks.
Update: It's to be a strange, but everything is OK on emulator iOS 11.4, so my issue only with real device. Device and emulator are same: iPhone 7, 11.4
@DualH
Sorry, issue is fixed.
Just do not laugh at me, the issue was that i was using:
ios: '<app_id>'
instead of:
ios: 'app_id'
.
Android the same, without "<>" must be.
@kurtiev, yes the correct way of implement is
ios:
'213123'
↑ numbers random haha.
In my case is different because the problem start when I update to Ionic 3 and Angular 5
Regards.
Same problem here..
I just recognized that this._appRate.preferences is null, when I try to add custom parameters.
I've been using this plugin for a while and got stuck on this. Looks like the plugin now requires you to supply a noButtonLabel and yesButtonLabel in your customLocale.
The Locales.getLocale() method used in showDialog (AppRate.js) does not check and provide default values for these. With your example above, when simpleMode === false, it calls;
navigator.notification.confirm(localeObj.appRatePromptMessage, promptForAppRatingWindowButtonClickHandler, localeObj.appRatePromptTitle, [localeObj.noButtonLabel, localeObj.yesButtonLabel]);
Which evaluates to;
navigator.notification.confirm('Msg', Func, 'Example', [undefined,undefined]);
// Note undefined
The navigator.notification.confirm is actually what crashes the app as the button labels are undefined when passed back to native code.
For me at least, ensuring I've provided all of the custom locale properties (and specifically the no and yes button labels) has solved this;
AppRate.preferences.customLocale = {
title: "Would you mind rating %@?",
message: "It won’t take more than a minute and helps to promote our app. Thanks for your support!",
cancelButtonLabel: "No, Thanks",
laterButtonLabel: "Remind Me Later",
rateButtonLabel: "Rate It Now",
yesButtonLabel: "Yes!",
noButtonLabel: "Not really",
appRatePromptTitle: 'Do you like using %@',
feedbackPromptTitle: 'Mind giving us some feedback?',
};
@Ralpharoo thanks, it solves my problem :)
I use simpleMode: true, so the appRatePromptTitle and feedbackPromptTitle properties are not necessarry.
Intro
Hello, when compile and call method this.appRate.promptForRating(true); the app doesn't work, crash and close.
My ionic info
cli packages: (/usr/local/lib/node_modules)
global packages:
local packages:
System:
Misc:
How to fill preferences
Error in Xcode console