-
Notifications
You must be signed in to change notification settings - Fork 269
HockeyApp Update alert does not popup #515
Comments
hi @junalmeida, I've rechecked with your versions and the alert window showed as expected. This could be server side issue, but I would like to take a peek at the code snippet that starts HockeySDK in your app, is that possible? Best, |
Sure @bmourat , please let me know if the following is enough for you to investigate. hockeyapp.start(
(success) => {
hockeyapp.trackEvent(null, null, "check_for_update: " + (this.session ? this.session.email : ""));
hockeyapp.checkForUpdate(
(up_ok) => {
console.log("check_for_update: " + up_ok);
},
(up_err) => {
this.toastCtrl.create({
message: "Erro: " + up_err,
showCloseButton: false,
cssClass: "error",
duration: 3000
}).present();
});
},
(err) => {
this.toastCtrl.create({
message: "Erro: " + err,
showCloseButton: false,
cssClass: "error",
duration: 3000
}).present();
}, appId, true, 2 /* HockeyApp.CheckForUpdateMode.CHECK_MANUALLY */, false, true); After setting the verbose log
|
Hi @junalmeida I've performed some investigation and indeed the code you provided doesn't call update functionality. The reason is that on start HockeySDK is performing multiple initializations and checks in separate threads, and when you call checkForUpdate immediately after starting SDK, some of the initializations are not finished. There are couple of ways to resolve this issue:
Hope this helps if it doesn't could you please try calling for updates in button handler and see if it is working? Best, |
@bmourat A colleague of you stated that the real problem is that the iOS sdk cannot check for updates if these versions are restricted to a distribution group. After I set them to unrestricted, the code started to work. I was using the manual option in a matter of try and error. I guess that you can close this issue, but I did not find any tip on the documentation of checkForUpdates regarding the restrict option of the app versions on ios. |
Great, glad you figured out your issue! |
I'm running into the same issue right now.
Is this the case? If so I wasn't able to find this in the documentation, but maybe I missed something. If not I think it would be good to mention this somewhere, or ideally to enable this functionality for distribution groups as well. |
@daehn If you want to restrict versions to specific users, you can follow the instructions on our guide Authenticating Users on iOS. |
While debugging, I can see a breakpoint being hit at:
However, I never see the alert window. I checked the
sharedHockeyManager
appidentifier variable and it is correct. I cannot see any message on system.log that indicates me the cause of this problem.My development version is 0.0.1. Latest ipa for my appidentifier is 1.0.392, so I guess that it should offer the update alert.
Can you please advise?
The text was updated successfully, but these errors were encountered: