I am currently working on an iOS app using app. I want to add AWS mobile analytics to my app but I've been having a difficult time doing so. I followed AWS get started guide but it doesn't work. I imported AWS using Cocoapods.
In the guide, the code to initialize AWS mobile analytics is here (it is in objective-C) :
AWSMobileAnalytics *analytics = [AWSMobileAnalytics mobileAnalyticsForAppId: #"myAppID"
identityPoolId: #"myIdentityPool iD"];
I don't know much about objective-C, but I translated it to swift like this:
var analytics: AWSMobileAnalytics = AWSMobileAnalytics(mobileAnalyticsForAppI:"myAppID", identityPoolId: "myIdentityPool iD")
When I went back to the aws analytics dashboard, nothing showed up. Am I missing something here?
Related
I'm trying to integrate Zendesk messaging in my iOS app with this doc
and I can't init Zendesk properly.
If I add only ZendeskSDKMesaging framework as it written in the documentation, I receive the error "Cannot find 'Zendesk' in scope". So I'm adding ZendeskCoreSDK but now it has no initialisation method as in the instruction Zendesk.initialize(withChannelKey..., it only shows the one for SupportSDK with appID and clientID, not with channel key. Did anyone faces with the same problem?
I'm trying to publish my first xamarin forms app on IOS. I barred the issue of login with the Apple account.
I have 4 questions, please.
1- If I implement Sign in with Apple only for IOS 13+ will it be accepted? :(
2- I'm trying to use Xamarin Essentials to log in to IOS 13+ as shown in this article:
Xamarin Essentials
// Use Native Apple Sign In API's
r = await AppleSignInAuthenticator.AuthenticateAsync();
But I only get back the idToken. AccessToken, name and mail return null. Am I missing something?
3 - And finally I tried to use the plugin.firebaseAuth version 4.0.0-pre01:
Link plugin
// For iOS
var credential = CrossFirebaseAuth.Current.OAuthProvider.GetCredential("apple.com", idToken, rawNonce: rawNonce);
var result = await CrossFirebaseAuth.Current.Instance.SignInWithCredentialAsync(credential);
// For Android
var provider = new OAuthProvider("apple.com");
var result = await CrossFirebaseAuth.Current.Instance.SignInWithProviderAsync(provider);
It provides an example using prism to deal with this, but when I install the plugin in this version the application is no more than a splash screen and closes, without showing an error in the output. What am I doing wrong? :(
The first link seems promising for iOS less than 13 and Android using Asp.NET. However in the application I use only the Firebase ClouFirestone and Firebase Hosting for the Administrative Panel. Is it possible for me to sign in Apple without the services of a different backend?
I am very grateful for any light on the path I must follow
1- If I implement Sign in with Apple only for IOS 13+ will it be accepted?
It depends, if they don't find any other issues or violation, it will get accepted.
2- I'm trying to use Xamarin Essentials to log in to IOS 13+ as shown in this article: But I only get back the idToken.
Apple will only provide you the requested details on the first authentication. After that first authentication, you will only get the User Id so be sure to store the details that first time in case you need them.
This feature needs to be tested on a physical device running iOS 13. The simulator is not reliable, it doesn’t always work properly.
Should follow the design guidelines when implementing Apple Sign In. You can find it here: https://developer.apple.com/design/human-interface-guidelines/sign-in-with-apple/overview/
Do anybody have a good example or source code for integrating firebase clouds, stripe on ios using swift?
This is an sample code that I got from: Stripe firebase example code
'use strict';
const functions = require('firebase-functions'),
admin = require('firebase-admin'),
logging = require('#google-cloud/logging')();
admin.initializeApp(functions.config().firebase);
const stripe = require('stripe')(functions.config().stripe.token),
currency = functions.config().stripe.currency || 'USD';
But how do I connect it the backend to my ios app?
Your app should trigger the execution of the cloud function. Check this tutorial. The functionality will be independent of your backend ios app as it should be triggered from ios/Android/web... all potential clients.
Is it currently possible to implement Flurry using Swift and log events? I followed this post, but no events are being logged: how to integrate flurry in ios using swift language.
I imported the Flurry SDK 6.0.0, have a bridging header that is working properly, imported the 'Security' and 'SystemConfiguration' frameworks, and am attempting to log events as follows in the 'applicationDidFinishLaunchingWithOptions' function:
Flurry.startSession("KEY HERE") //This part seems to be working since it prints to the console when it logs in
Flurry.setCrashReportingEnabled(true)
Flurry.logEvent("Event Name")
var idDict = NSDictionary(object: "Id here", forKey: "ID")
Flurry.logEvent("Testing Swift", withParameters: idDict)
According to a support rep with Flurry, the real problem with my attempt to log events is that I was attempting to do so in the 'applicationDidFinishLaunchingWithOptions' function. Apparently there is am issue with Flurry SDK 6.0.0 that does not allow events to be logged from inside that function in the AppDelegate. I tried logging an event elsewhere and it worked.
Google Map is now available in Appstore for IOS 6. I have a application which utilises MAPKIT and WebView to show Driving direction using Google webservices.
For showing Route in Native Apple MAP app, i use codes similar to this..
MKMapItem *mapItem = [[MKMapItem alloc]initWithPlacemark:place];
NSDictionary *options = #{
MKLaunchOptionsDirectionsModeKey:MKLaunchOptionsDirectionsModeDriving
};
[mapItem openInMapsWithLaunchOptions:options];
I want to show Route to the user in the New Google MaP App installed on user device, embeed its UI within a View in my app.
Do guide me.
Goole have released latest API for IOS 6.0 and up.
For that follow the step below
You have to registered your app and get the keys from Map IOS access.
Refer the following link for further detail
New way to add google maps in iOS 6 app
For displaying the directions within the GoogleMaps app, using the new GoogleMaps URL scheme along the lines of:
comgooglemaps://?saddr=Google+Inc,+8th+Avenue,+New+York,+NY&daddr=John+F.+Kennedy+International+Airport,+Van+Wyck+Expressway,+Jamaica,+New+York&directionsmode=transit
Taken from the documentation should help you. A short browse from there, you will also notice that Google have released an SDK for the new GoogleMaps, with access tokens being rolled out slowly. Doc
seemed to cut off the end of my answer, but #Hi Ren has filled in the end with the link to the documentation to the new SDK.