-
-
Notifications
You must be signed in to change notification settings - Fork 871
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash in BFTask+Private.m #611
Comments
You are indeed using the correct branch, since we are still in beta for watchOS 2 (you can track the progress in #179). This crash suggests that you are trying to decode the object for a class that starts with an underscore (most likely |
Thank you for your feedback. We prioritize issues that have clear and concise repro steps. Please see our Bug Reporting Guidelines about what information should be added to this issue.
|
@nlutsenko Yes, I shared the report of a invoked [PFUser logInWithUsername: password:] And I have a crashes with [PFUser become:] At first time I used sessionToken -(void) session:(WCSession *)session didReceiveMessage:(NSDictionary<NSString *,id> *)message
{
NSLog(@"%@",message);
if ([message valueForKey:@"currentSession"]) {
if (![PFUser currentUser]){
[PFUser become:[message valueForKey:@"currentSession"]]; //<<I HAVE THE CRASH HERE
NSLog(@"%@",[PFUser currentUser]);
}
}
} And than I tried to catch a bug [Parse setApplicationId:@"APPID" clientKey:@"KEY"];
[PFUser logInWithUsername:@"CORRECTUSERNAME" password:@"CORRECTPASSWORD"]; Same result. I opened this issue after that. I suspect the disconnected internet connection for WatchOS 2 Simulator. But the Map app is work and connection is strong. I don't know. |
Could you share the project or repro piece here? |
AS IS. Confidential data was replaced. - (void)awakeWithContext:(id)context {
[super awakeWithContext:context];
if ([Parse isLocalDatastoreEnabled]==NO){
[Parse enableLocalDatastore];
// [Parse enableDataSharingWithApplicationGroupIdentifier:@"group.com.domain.app" containingApplication:@"com.domain.app"];
[Parse setApplicationId:@"AppID" clientKey:@"Key"];
// [PFUser logInWithUsername:@"testuser" password:@"pass"]; ///DEBUG
if ([WCSession isSupported]) {
_session = [WCSession defaultSession];
_session.delegate = self;
[_session activateSession];
}
}
}
-(void) session:(WCSession *)session didReceiveMessage:(NSDictionary<NSString *,id> *)message
{
NSLog(@"%@",message);
if ([message valueForKey:@"currentSession"]) {
if (![PFUser currentUser]){
[PFUser become:[message valueForKey:@"currentSession"]];
NSLog(@"%@",[PFUser currentUser]);
}
}
_ObjId = [message valueForKey:@"objectObjectId"];
} Import in .h file
Podfile
...
|
Since this is probably watchOS 2 app you probably have a class that confirms to WKExtensionDelegate - what happens if you place the following inside [Parse enableLocalDatastore];
[Parse setApplicationId:@"a" clientKey:@"b"]; |
@nlutsenko Thank you for the correct direction, Nikita I changed in my .h file @import WatchConnectivity;
@import WatchKit;
@interface InterfaceController : WKInterfaceController <WCSessionDelegate,WKExtensionDelegate> also I changed Info.plist
Still not calling. UPD: Of course -(void)applicationDidFinishLaunching{
[Parse enableLocalDatastore];
[Parse setApplicationId:@"AppID" clientKey:@"Key"];
} |
This issue has not been updated for 7 days. If you have additional information to help pinpoint this issue as an SDK bug, please comment on this issue. We will close this issue in 7 days if no additional information is provided. Thank you for your feedback. |
We are closing this issue due to another 7 days of inactivity. If you have additional information to help pinpoint this issue as an SDK bug, please reopen it with the additional information.Thank you for your feedback. |
I try to login or become PFUser session in WatchOS2 Extension. But it crashing on BFTask+Private.m on 117th string
I used " branch => 'nlutsenko.watchOS' "
I tried to login or become (also inBackground and withblocks etc), but same result.
I use Objective-C
So I have few questions:
AppWatch Extension
(watchOS 2.0) is not compatible withParse (1.10.0)
, which does not supportwatchos
.Thank you.
The text was updated successfully, but these errors were encountered: