Comments (7)
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,
Murat
from hockeysdk-ios.
Sure @bmourat , please let me know if the following is enough for you to investigate.
I use the HockeySDK-ios via cordova:
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 [BITHockeyManager sharedHockeyManager].logLevel = BITLogLevelVerbose;
on HockeyManager.m
, I can see the following log:
2018-04-16 18:26:58.389 Samara Alpha[25104:1271208] [HockeySDK] -[BITUpdateManager finishLoading]/900 INFO: Received API response: {"versions":[],"tracker":{},"company":"Tv Globo"}
2018-04-16 18:26:58.389 Samara Alpha[25104:1271208] [HockeySDK] -[BITUpdateManager finishLoading]/920 WARNING: No versions available for download on HockeyApp.
from hockeysdk-ios.
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:
- Use HockeyApp.CheckForUpdateMode.CHECK_ON_STARTUP option (Is there any particular reason why are you checking for updates manually?)
- Use timer to delay call for updates say for 1 second
Hope this helps if it doesn't could you please try calling for updates in button handler and see if it is working?
Best,
Murat
from hockeysdk-ios.
@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.
from hockeysdk-ios.
Great, glad you figured out your issue!
from hockeysdk-ios.
I'm running into the same issue right now.
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.
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.
from hockeysdk-ios.
@daehn If you want to restrict versions to specific users, you can follow the instructions on our guide Authenticating Users on iOS.
from hockeysdk-ios.
Related Issues (20)
- Set Custom AlertViewHandler Documentation HOT 2
- SDK logging an error instead of a debug or verbose message "The file “Application Support” doesn’t exist." HOT 14
- lastSessionCrashDetails sometimes doesn't work right HOT 5
- When is the next release? HOT 8
- BITCrashManager ignores crashes after crashManagerStatus reset from .disabled HOT 3
- AppNotTerminatingCleanly event reported for background sessions HOT 3
- BITUpdateManager not updating automatically HOT 2
- Cancel update crashes the app HOT 5
- Crashes not appearing in dashboard HOT 10
- BITCrashManager cancelled HOT 3
- AppNotTerminatingCleanly event is not reported after process start HOT 4
- Feedback composing doesn't resize properly for keyboard HOT 4
- Unable to add New iOS Devices to Provisioning Profile HOT 5
- Cocoapods only updates to 5.1.2 HOT 3
- Carthage Compilation Failed in Xcode 10.2 beta 3 HOT 25
- No crash dialog in main app after crashes via KB extension HOT 4
- FOOM (fatal out of memory error) not being recorded? HOT 10
- Support Project Catalyst (UIKitForMac) HOT 3
- ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of apps that use UIWebView APIs . HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hockeysdk-ios.