quickstart-ios | Firebase Quickstart Samples for iOS | Authentication library
kandi X-RAY | quickstart-ios Summary
kandi X-RAY | quickstart-ios Summary
A collection of quickstart samples demonstrating the Firebase APIs on iOS. Each sample contains targets for both Objective-C and Swift. For more information, see
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of quickstart-ios
quickstart-ios Key Features
quickstart-ios Examples and Code Snippets
Community Discussions
Trending Discussions on quickstart-ios
QUESTION
This app was working normally, so, I want to deliver notifications through FCM and added this code : Firebase Documentation at my appDelegate.swift and now I run the app and it only shows a white screen.
In the console there are no error and no warnings... What I have to do to solve it?
...ANSWER
Answered 2021-Jan-20 at 14:26Updating FirebaseMessaging to 8.0.0 dev-14 solved my problem.
If anyone reading this has the same problem I suggest to check AGAIN and CAREFULLY all the steps listed here Documentation because probably you forgot one thing or another, in my case, in firebase Apns the team id was wrong...
QUESTION
I have a an iOS app using Firebase for notifications. Notifications are set up and working, and I now need to receive/handle the notifications to present view controllers accordingly. I use Objective C code to call my C++ code, and therefore I have a bridging header in my project, which is mainly written in Swift.
I have used this example from the firebase documentation (as well as other examples). In short terms: conform to the protocol UNUserNotificationCenterDelegate
and implement its functions. I also do import UserNotifications
in my AppDelegate
class.
Now, when compiling with these few changes I get these two errors
Cannot find protocol declaration for 'UNUserNotificationCenterDelegate'
Unknown type name 'UNNotificationPresentationOptions'
for the generated code:
...ANSWER
Answered 2020-Oct-04 at 11:36After digging for some time I found the source of the error. Simply doing
QUESTION
There are two things that are unclear to me about TwilioVoice for iOS, after having followed the quickstart demo.
- First, I want my app to be only able to receive phone calls, and not to make some. So I want to know, do I really need to call
TwilioVoice.register(accessToken)
? Or something withCallKit
would be enough? - My other question is about access tokens. In the quickstart demo, an access token is fetched every time the user enters
ViewController
, but since I only want to be able to receive phone calls, I was thinking of fetching access token only in theAppDelegate
, but I wonder if I would have issues with the token lifetime?
Thank you for your help,
...ANSWER
Answered 2020-May-20 at 20:05- Yes, you still need register your device. When user A makes a call to user B, Twilio needs user B's device to be registered so they know where to send the VoIP push notification to. CallKit manages the local on-device call state, it doesn't provide the network side of the call. Twilio provides the network side of the call.
- You're correct with this. In our application, we register any time
application(_:didRegisterForRemoteNotificationsWithDeviceToken)
is called since that's the method that provides your application with the device token you need to pass to Twilio.
I'd caution against taking Twilio's sample project as a good sample project. I had to rework most of what they did in their example when I built our implementation. There's WAY more state management that needs to be done to nicely integrate with CallKit.
QUESTION
I encounter a weird issue with long dynamic link base on FirebaseDynamicLinks (4.0.8):
Have tried refer to similar issues firebase/quickstart-ios/issues/380#issuecomment-343255857 and DynamicLinks.dynamicLinks().handleUniversalLink returns false
My long dynamic link format is alike that :
And already confirm my real link is normal by appsearch-validation-tool
However, my implement of handleUniversalLink in AppDelegate without call back, cause the handled return NO....
...ANSWER
Answered 2020-May-05 at 06:22NSDictionary *FIRDLDictionaryFromQuery(NSString *queryString) {
NSArray *keyValuePairs = [queryString componentsSeparatedByString:@"&"];
NSMutableDictionary *queryDictionary = [NSMutableDictionary dictionaryWithCapacity:keyValuePairs.count];
for (NSString *pair in keyValuePairs) {
NSArray *keyValuePair = [pair componentsSeparatedByString:@"="];
if (keyValuePair.count == 2) {
NSString *key = keyValuePair[0];
NSString *value = [keyValuePair[1] stringByRemovingPercentEncoding];
[queryDictionary setObject:value forKey:key];
}
}
}
QUESTION
I am currently trying to achieve to draw boxes of the text that was recognized with Firebase ML Kit on top of the image. Currently, I did not have success yet and I can't see any box at all as they are all shown offscreen. I was looking at this article for a reference: https://medium.com/swlh/how-to-draw-bounding-boxes-with-swiftui-d93d1414eb00 and also at that project: https://github.com/firebase/quickstart-ios/blob/master/mlvision/MLVisionExample/ViewController.swift
This is the view where the boxes should be shown:
...ANSWER
Answered 2020-Feb-18 at 09:07ML Kit has a QuickStart app showing exactly what you are trying to do: recognizing the text and drawing a rectangle around the text. Here is the Swift code:
https://github.com/firebase/quickstart-ios/tree/master/mlvision/MLVisionExample
QUESTION
I am receiving the token, but when I send a notification from the Firebase Console, nothing happens on my device, no matter if the app is backgrounded or not. At the same time, my Android app receives the notification.
I followed this guide:
https://firebase.google.com/docs/cloud-messaging/ios/client
and just to be sure, I also copy-pasted the sample code at
Testing this function:
...ANSWER
Answered 2020-Apr-03 at 20:40It turned out, only messages that do not contain a notification object are delivered if your app hasn't yet been approved to the App Store.
After having the first version out, push notifications work for your app, even in debug mode.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install quickstart-ios
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page