No stream value for some songs in Deezer iOS SDK - ios

I'm using the Deezer iOS SDK and almost everything is working well.
However, sometimes, when I request a song (doesn't matter which one), the readable value is 1 but the stream value is 0.
I checked on several devices (iPhone & iPad), with different iOS version (7.0.6 and 7.1.1) and different connectivity (Wifi or 3G).
I though that was because the account used was not a Premium account, but on my iPhone5S it's worked well when my iPad is lost.
I want to know if it's a problem with the account used, the device, the request or whatever it can be to solve it.
Thanks,

The readable property on a track means that you could potentially this track. This readable property depends on a lot of parameters (country, user status...).
One thing is sure though, if you do not have a premium account, you normally cannot have the stream property set.
Hope that helps.
Guillaume.

Related

Is there a way to exclude an app that requires pedometer from the App Store?

I'm working on an app that requires step counting.
There are several devices that don't support this feature (for example in my iPad mini 2, CMPedometer.isStepCountingAvailable() returns false).
Since the app heavily relies on the pedometer, I'd like to make it unavailable to download for unsupported devices.
I would expect to find a pedometer-related entry in the documentation of UIRequiredDeviceCapabilities, but there is none.
Is this possible in any way?
No, it is not possible to make an app unavailable for download on the basis of CMPedometer.isStepCountingAvailable(). The preferred method would be to display a notice to the user once downloaded, that their device does not support the required functionality.

Why same iCloud account but got different ubiquityIdentityToken

i am trying to implement an App with iCloud Key-value storage feature.
Currently, I'm testing it from two devices iPhone5s with iOS7.0.4 and iPhone4 with iOS6.1.1.
Do you guys have any idea why the same iCloud account (checked from Settings -> iCloud -> Account) gets two different ubiquityIdentityToken? i guess this is the reason the data didn't sync between this two devices (network accessed).
And on iOS6, NSUbiquitousKeyValueStoreDidChangeExternallyNotification is not trigging.
Thanks in advance!
The ubiquityIdentityToken is only intended to be used to:
Determine if iCloud is available to your app
Determine if the iCloud account has changed (by comparing to a previously saved value).
It's opaque but conforms to a few protocols. You can save it locally and compare the current value with a previous value, but that's about all it's good for. It's not guaranteed to be useful in any other situation.
It's not guaranteed to be the same on different devices, even if those devices use the same iCloud account. Why it might be different is not documented-- it might encode a device-specific value somehow. Regardless, it's not something that you can transfer from one device to another and expect to still be useful. That's not how it's designed to work.
It does encode a device-specific value in the token. The 8-digit hexadecimal number groups between positions 17 and 22 change on a different device OR with a different iCloud account.
The rest of the groups usually remain the same, across different apps, devices, OR iCloud accounts.
This is strange behaviour. In these cases Apple usually recommends signing out and logging again (using the same Apple ID) on both devices. Try that and see if it helps. Also, make sure to install the latest version of your app (with enabled iCloud) on every device.

Sandbox GameCenter accounts failing to find each other in matchmaking

I'm developing a turn-based iPhone game using Game Center. I created two Game Center accounts for testing but neither can find the other when I try to matchmake games. Both are in two matchmade games alone - neither found the other when matchmaking, in spite of the fact that the matches have 8 players max. What do you think could be causing this? Should I just put it on my physical device, because the games don't really work in sandbox, or what?
Gamecenter testing was a big disappointment for me, but I would enjoy to summarize some things that I learned in the process.
Make sure
-You enabled gamecenter support in both itunes connect's app information section and inside version details
-You completed a turn with a call to endTurnWithMatchData otherwise no other user will be able to connect to your game
-Know that simulator is able to connect to a game but it can't receive data only actual devices can.
-It is not a lag!
There is the possibility that your devices are actually able to match but there is a huge lag before they can, so you think it is not working. This happens to me with my iPad and iPhone for testing, it always takes around a minute to match another device. I have a asked a question regarding this lag here :Game Center Matchmaking GKTurnBasedMatch has significant lag (~1 min) Most replies told same things happens to them and problem is usually in apple's server not your code. I have also contacted apple for the issue by submitting a TSI, they have suggested doing many things (such as trying different gamecenter sandbox accounts, turning off the device, hard reset) but in the end all they told me was 1 min is well within the acceptable lag for turn based matchmaking. I have also submitted a bug report with ID #: 13635249 and its status is open.

Pasteboard not accessible when locked with passcode on iOS

I have noticed I cannot access the Pasteboard in iOS whenever my device is locked with passcode. I know there was a restriction regarding keychain, but not sure why its affecting pasteboard as well. Is this a known issue or purposeful restriction?
I'm assuming this is desired function.
Imagine an app like 1Password. That app supports copying a password to the paste/clip board.
If I have a passcode set on my device, it's probably because I don't want people to be able to see the data on that device - it could contain stuff like, say, all the specs and launch date for the next iPad.
As a user, I probably shouldn't be copying such information to the pasteboard, but, hey - my device is locked with a passcode, right? No one can see my info, right?
Apple knows that users often use this line of reasoning, and, however flawed it may be, you build your OS for the user - not the user for your OS.*
* Unless you're Microsoft building Windows 8. Then you can break all the rules and make a strange OS.

I need to access /library on iOS 5.1.1 from a PC without jailbreaking

I know that this might be useless, but I just wanted to ask.
I have an iPhone 4s running iOS 5.1.1, a few months ago my wife did set a restrictions passcode on it to prevent our daughter from changing some settings accidentally while she's playing games with the phone.
Now my wife forgot that code and needs to change some settings herself and of course she's not able to do so.
I've got a way around this but it's necessary to access /library/keychains to do it.
Since the phone is not jailbroken, I can't access that path (Using i-Funbox)
Is there any other way that I can use it to access this path ?
Is there any way around to reset this passcode ?
Without jailbreak, you can't. However, you can easily jailbreak the phone using Absinthe 2.0.4.
if you don't want to do that at all, you can make a backup of the device using iTunes, then restore its firmware to factory defaults, then the pass code will be gone. You'll get back all your data after re-syncing with iTunes.

Resources