Xamarin iOS INVoiceShortcutCenter crash - xamarin

in my app I have the following line of code:
var allShortcuts = await INVoiceShortcutCenter.SharedCenter.GetAllVoiceShortcutsAsync();
When this line gets called, the app crashes and the following Error appears:
Error Domain=IntentsErrorDomain Code=7001 "Failed to get voice shortcuts" UserInfo={NSDebugDescription=Failed to get voice shortcuts, NSUnderlyingError=0x600001a82460 {Error Domain=NSCocoaErrorDomain Code=4097 "Couldn’t communicate with a helper application."}}
Has someone and idea why this happens?

Related

Sign In With Apple ID AKAuthenticationError Code=-7014

I have been trying to implement Apple ID Sign in for both iOS and tvOS applications. iOS is able to sign in with Apple ID just fine, but whenever I tried to sign in through our tvOS app, it shows a generic unknown error in the UI (error 1000) and in the debug log, it gives me the following error:
[core] Authorization failed: Error Domain=AKAuthenticationError Code=-7014 "(null)" UserInfo={AKClientBundleID=[bundleID]}
I use this code below that follows the basic steps for Apple ID Sign In:
#IBAction func signInbuttonTapped(_ sender: Any) {
let appleIDProvider = ASAuthorizationAppleIDProvider()
let request = appleIDProvider.createRequest()
request.requestedScopes = [.fullName, .email]
let authorizationController = ASAuthorizationController(authorizationRequests: [request])
authorizationController.delegate = self
authorizationController.presentationContextProvider = self
authorizationController.performRequests()
}
I have "Sign in With Apple" capabilities Turned on in XCode, and our Identifier for tvOS app is using the same Group App ID as the iOS Identifier so it seems to be fine. There isn't any forums that give this exact error. Does anyone know about what error code -7104 means, and what can I do to resolve it? Thank you.

when exit and enter the app again using a MasterDetailPage, it crashes after a certain amount of times

The first page of my app is a Contentpage where you login or MasterDetailPage if you are already logged in. Even when the app runs fine, if I exit tha app and enter a certain amount of times (sometimes is 2, sometimes even 10), the app crashes and I get the next error message. Java.Lang.IllegalArgumentException: and this appears in crashlytics:
Shutting down VM
FATAL EXCEPTION: main
Fatal Exception: > java.lang.IllegalArgumentException: No view found for id 0x249 (unknown) for fragment FragmentContainer{bbc6fff #0 id=0x249}
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1413)
at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1750)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1819)
at android.support.v4.app.BackStackRecord.executeOps(BackStackRecord.java:797)
at android.support.v4.app.FragmentManagerImpl.executeOps(FragmentManager.java:2590)
at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2377)
at android.support.v4.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2332)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2239)
at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:700)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
This only happens when I am in the masterdetailpage, in the login page functions very good
The error was that I make a transition between 2 pages in the code too fast, so one of them didn't finish loading and the other was starting. That was the source of my error. Now that I fixed it I can see it in my emulator android 8.1, but have problems with 7.0 if I know why I will put it in the post.
EDIT:
The error in 7.1 is only when I am trying to installed it again in my phone with debug. The error is the next:
Android.View.WindowManager BadTokenException: Unable to add window token android.os.BinderProxy is not valid; is your activity running?
if you use the app normally after the installation, it works good!

swift 4 firebase google sign in exception

I am trying to use firebase google sign in. I have created a view that I set the class to GIDSignInButton. I attached an outlet to it in the view controller, but when I run the app and click on the GIDSignInButton, the app crashes with:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'You must specify |clientID| for |GIDSignIn|'
Does anyone know how to fix this?
Please try this code in didFinishLaunchingWithOptions method in AppDelegate class:
GIDSignIn.sharedInstance().clientID = FirebaseApp.app()?.options.clientID
GIDSignIn.sharedInstance().delegate = self
If you not use firebase then you can write:
GIDSignIn.sharedInstance().clientID = "your client id present in googleservice .plist file"
GIDSignIn.sharedInstance().delegate = self
It may helps you. Thank you.

ERROR: Encountered error during push registration with OneSignal: Error Domain=OneSignalError Code=400 "

It have been a white I'm facing a issue while integrating one-signal to my app for iOS
i followed every thing in the ionic guide and one-signal
but getting this error
ERROR: Encountered error during push registration with OneSignal:
Error Domain=OneSignalError Code=400 "(null)" UserInfo={returned={
errors = (
"app_id not found. You may be missing a Content-Type: application/json header."
); }}
I'm sure the app_id is correct
any body help this is my code :
platform.ready().then(() => {
// Okay, so the platform is ready and our plugins are available.
// Here you can do any higher level native things you might need.
statusBar.styleDefault();
splashScreen.hide();
if(platform.is('ios')){
console.log('platform is ios using onsignail for ios');
this.oneSignal.startInit('bae0c3e1-bc4e-49ab-9274-18635XXXXX', );
this.oneSignal.inFocusDisplaying(this.oneSignal.OSInFocusDisplayOption.InAppAlert);
this.oneSignal.handleNotificationReceived().subscribe(() => {
// do something when notification is received
});
this.oneSignal.handleNotificationOpened().subscribe(() => {
// do something when a notification is opened
});
this.oneSignal.endInit();
}
this is the output in xcode console
ERROR: Encountered error during push registration with OneSignal: Error Domain=OneSignalError Code=400 "(null)" UserInfo={returned={
errors = (
"app_id not found. You may be missing a Content-Type: application/json header."
);
}}
2018-09-20 09:48:39.056130+0100 Baby Fashion[514:115983] ERROR: Encountered error during email registration with OneSignal: (null)
thank you for your help
You need to start OneSignal as soon as possible, else it will not provide app_id while app trying to hook plugin with ios and it will throw error.
And you have code inside platform.ready method so oneSignal taking time to initialize while plugin trying to hook.
You also need to set firebase project id to enable push notification for Android app.

BlackBerry "Handheld is resetting: Error: member changed name:" error while Debug as Blackberry Device

"Handheld is resetting: Error: member changed name: com.xxxxxx.xxxxxx.UserData.->email"
When I want to debug my app on BlackBerry 8520, I received this error popup on Eclipse. I also have test phones bb9700 and bb9900 but i dont get this error while debuging.
Any idea?

Resources