Hi,
I have the same problem like other here in the forum, ipv6 rejection..
"Your app crashes on an iPad and iPhone running iOS 10.1 connected to an IPv6 network when we:
Selected the ‘Share’ button...
This occurred when your app was used:
- Offline
- On Wi-Fi
Please revise your app and test it on a device while connected to an IPv6 network (all apps must support IPv6) to ensure that it runs as expected."
I updated my iPhone5 to iOS 10.1 and tested my app in airplane mode, also offile without internet and wifi on. I couldn't reproduce the error, it is not crashing at all.
What information do I have to copy here then that you can help me guys..
Thank you..
I have the same problem like other here in the forum, ipv6 rejection..
"Your app crashes on an iPad and iPhone running iOS 10.1 connected to an IPv6 network when we:
Selected the ‘Share’ button...
This occurred when your app was used:
- Offline
- On Wi-Fi
Please revise your app and test it on a device while connected to an IPv6 network (all apps must support IPv6) to ensure that it runs as expected."
I updated my iPhone5 to iOS 10.1 and tested my app in airplane mode, also offile without internet and wifi on. I couldn't reproduce the error, it is not crashing at all.
What information do I have to copy here then that you can help me guys..
Thank you..
B4X:
Case "compartir"
modShare.ShareToSocialMedia(Page1, "Capers App", "Download Capers App: https://itunes.apple.com/nz/app/capers-dunedin/id1120027606?mt=8&ign-mpt=uo%3D4")
B4X:
'modShare
Sub Process_Globals
Private myPage As Page 'ignore
End Sub
#IF OBJC
//- (void)share2SocialMedia:(NSString *)subj :(NSString *)txt :(NSString *)theurl :(NSString *)theimg
- (void)share2SocialMedia:(NSString *)subj :(NSString *)txt
{
NSString *subject = subj;
NSString *text = txt;
//NSURL *url = [NSURL URLWithString:theurl];
//UIImage *image;
//if([theimg hasPrefix:@"http://"] || [theimg hasPrefix:@"https://"] ) {
// image = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:theimg]]];
//} else {
// image = [UIImage imageNamed:theimg];
//}
UIActivityViewController *controller =
[[UIActivityViewController alloc]
initWithActivityItems:@[text]
//initWithActivityItems:@[text, url, image]
applicationActivities:nil];
[controller setValue:subject forKey:@"subject"];
controller.excludedActivityTypes = @[UIActivityTypePostToWeibo,
UIActivityTypePrint,
UIActivityTypeCopyToPasteboard,
UIActivityTypeAssignToContact,
UIActivityTypeSaveToCameraRoll,
UIActivityTypeAddToReadingList,
UIActivityTypePostToTencentWeibo,];
[controller setCompletionHandler:^(NSString*activityType, BOOL completed) {
if (completed) {
[self.bi raiseEvent:nil event:@"activity_completed::" params:@[@((BOOL)completed),(activityType)]];
} else {
NSString *activity = @"";
[self.bi raiseEvent:nil event:@"activity_completed::" params:@[@((BOOL)completed),(activity)]];
}
}];
[(self._mypage).object presentViewController:controller animated:YES completion:nil];
}
#End If
Sub activity_completed(status As Boolean, T As String)
Log("onSharingDone: Status = " & status & " - Type: " & T)
End Sub
'Sub ShareToSocialMedia(p As Page, SubjectTxt As String, TxtForShare As String, TheURL As String, ImageFile As String)
Sub ShareToSocialMedia(p As Page, SubjectTxt As String, TxtForShare As String)
myPage = p
Dim NativeMe As NativeObject = Me
NativeMe.RunMethod("share2SocialMedia::", Array(SubjectTxt, TxtForShare))
'NativeMe.RunMethod("share2SocialMedia::::", Array(SubjectTxt, TxtForShare, TheURL, ImageFile))
End Sub