As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
I have build an app that fetches some resources from my kinvey app envirnment. It was working in Xcode 7 when I was running iOS 9 on the simulator, but now I've updated to Xcode 8-beta and iOS10 on the simulator-beta, and I'm seeing some strange behaviour.
In appDelegate I create a user like this:
// Create user credentials if this havn't aldreay been done
Sorry, i forgot to mention that, its 1.40.9..
Also, I finally got to run it on the device (also running iOS 10.0), and it seemed to work fine. It seems like the problem may be in the simulator..
P
Pranav J
said
over 6 years ago
Martin,
Does resetting the simulator make any difference?
Just wanted to confirm that the query works fine with iOS 10 on a phone but the issue is only seen while using the app with an iOS 10 simulator? Also you do not see any errors while creating the user on the iOS 10 simulator?
Thanks, Pranav Kinvey Support
M
Martin Wiingaard
said
over 6 years ago
Answer
Updating to SDK 1.41.1 removed the problem.
B
Billy Gee
said
over 6 years ago
Hello Martin,
We're glad to hear it. Thanks for letting us know.
Martin Wiingaard
Hello there,
I have build an app that fetches some resources from my kinvey app envirnment. It was working in Xcode 7 when I was running iOS 9 on the simulator, but now I've updated to Xcode 8-beta and iOS10 on the simulator-beta, and I'm seeing some strange behaviour.
In appDelegate I create a user like this:
// Create user credentials if this havn't aldreay been done
if KCSUser.activeUser() == nil {
KCSUser.createAutogeneratedUser(
nil,
completion:
{ (user: KCSUser!, errorOrNil: NSError!, result: KCSUserActionResult) -> Void in
print("Got new User ID: \(user.userId)")
}
)
while KCSUser.activeUser() == nil { /* Busy wait for user */ }
} else {
print("#### active user: \(KCSUser.activeUser())")
}
Every time I run the app, it creates a new user. I didn't have this problem in Xcode 7.
But okay, I have the user, so I should be able to download the resources. But when I call:
store.queryWithQuery(query, withCompletionBlock: ..., withProgressBlock: nil)
I get the following error in "errorOrNil" in the completion block:
Error Domain=KCSServerErrorDomain Code=401 "Invalid credentials.
Please retry your request with correct credentials"
Next time I'm trying to run the same store.queryWithQuery method, I get code 401 again, but another message:
Domain=KCSNetworkErrorDomain Code=401 "No Authorization Found"
To me it looks like it doesn't store the user credentials properly in the keychain.
What should I try to make it work?
Again, this was working fine before I updated to Xcode 8
I'm running:
Xcode Version 8.0 beta 2 (8S162m)
iOS 10.0
Updating to SDK 1.41.1 removed the problem.
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstBilly Gee
Hello,
Which version of the Kinvey SDK are you using?
Thanks,
Billy
Martin Wiingaard
Pranav J
Does resetting the simulator make any difference?
Just wanted to confirm that the query works fine with iOS 10 on a phone but the issue is only seen while using the app with an iOS 10 simulator? Also you do not see any errors while creating the user on the iOS 10 simulator?
Thanks,
Pranav
Kinvey Support
Martin Wiingaard
Updating to SDK 1.41.1 removed the problem.
Billy Gee
Hello Martin,
We're glad to hear it. Thanks for letting us know.
Regards,
Billy Gee
-
Why do I get "Undefined symbols" errors when building with KinveyKit?
-
How do I register push tokens?
-
When using social login, to perform a log-out, do I need to log out of the social network, Kinvey, o
-
How can I assign additional properties to users?
-
Does KinveyKit support 64-bit ARM devices, such as iPhone 5s?
-
Authorization Token Invalid or Expired
-
BOOL and how it is stored in the database.
-
Offline saving throwing errors
-
Custom endpoint not able to form request object
-
Security through business logic
See all 437 topics