So, I have an ionic 5 app with capacitor 3 and a firebase real-time database. I want to make sure that my app works offline. For that, I am struggling to test it.
I am currently using ios and able to deploy the app on the device using below:
ionic cap run ios -l --external
I can see the app logs using safari dev module when my device has data connection. however, when i turn it off the safari cannot show me device data. So, how do i first of all see that?
Related
I have a XF app already published on the play store and now I am targetting iOS. During developpent I made sure the app was still working on iOS, using the simulator only.
On the simulator everything works as expected, the launch screen is shown then the MainPage starts. But when I debug on an actual IPhone device, the app get stuck on the Launchscreen.storyboard for about 20 sec then the app exits. I've no debug output and it seems that the AppDelegate is never hit. Breakpoints in AppDelegate.FinishedLaunching method are not hit for instance. I tried to F11 for start in debugging mode but I don't hit anything, still hanging on the launch screen. I was expecting the transition from simulator to device to be less painful.
My plist file contains the following permission requirements
...
<key>NSLocationAlwaysUsageDescription</key>
<string>We need to use your location</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>We are using your location</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>This app needs access to photos.</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>This app needs access to the photo gallery.</string>
The only difference I saw is that location permissions are not asked on the device while in the simulator it asks for it at start. But this might be related to the fact that I can't reach AppDelegate, I am not sure yet.
The iOS project was generated via Prism templates. I am using VS 16.8.0 on Windows, XF 4.8.0.1687, Prism 8.0.0.1909, Xamarin iOS SDK 14.4.1.3 and I am set to "don't link" for linkers option. The device is an Iphone 10.
Any idea how can I find out the root cause - or get some useful logs?
Thanks in advance for your help.
EDIT:
Here are the device log output during a new installation https://taits.s3-eu-west-1.amazonaws.com/devicelogs.txt. I am trying to go through them but kinda lost.
I'm looking to install and automatically/one button update very early development builds of an application to Android TV devices in my household. I've initially tried Google Play using an internal track, but it turns out this is reviewed by a human initially and because of how incomplete the application is it was rejected. I do not want to get bogged down in design/etc. to get past the Play reviewers, especially with the current 7 day~ turn around time.
I found Firebase App Distribution, which seems like a decent choice for the kind of testing I want to achieve, but the set up process seems very mobile centric, and talks about clicking links in emails etc. which is not doable on Android TV.
My goals are:
Get my not production ready application installed and automatically/one button press updated on Android TV
I've tried:
Google play store internal track, rejected because of how "not production ready" it is
Firebase App Distribution, but the tester registration process involves emails/flows not available on TV
So I guess my questions are:
What are my options for installing and automatically updating signed test builds on Android TV?
Is it possible to use Firebase App Distribution with Android TV apps? How do you register?
Currently I'm either having to get the devices near a laptop to adb install the APK, or pushing the APK to a network share and using a file manager on the TV devices to manually install and update the app.
I wanted to run my swiftui app on macos, unfortunately i can still see error That
Running InstanceID on a simulator doesn't have APNS. Use prod
profile by default.
I used the code from firebase messaging docs to initialize firebase messaging and later on I wanted to get instance id token.
While using Xcode I don't get any other errors instead of this which I mentioned. That's why I decided to archive my app and run it independently
outside Xcode. Unfortunately I still can see in console error message about running in simulator. When I run that code on my physical iPhone everything works properly.
Xcode log
Mac console log
Does anyone know what should I change or how should I archive the app properly in order to firebase not detect my app as simulator?
I am trying to send push notification on my iOS device with the help of FCM and ionic 3. But I'm unable to get on my device, for android it is working fine, but for iOS its not working. I'm getting device token for iOS and I've enabled push notification from xcode also.
Is there any other configuration, which I'm missing between iOS and FCM?
Yes.
Steps for ios FCM Integration:
Add the GoogleService-info.plist file in to the root folder of your app.
Add the plugin to your app following this link : https://ionicframework.com/docs/native/fcm/
Write the necessary code
Run command in terminal/cmd 'ionic cordova prepare'
Open Xcode and allow the code to be indexed.
Click on 'show project navigator' on the extreme left hand side below run button. Check the Resources Folder and click on GoogleService-info.plist. If it is empty, delete it and manually place the file again in that folder by dragging and dropping.
Under Capabilities, ON push notifications and ON background modes> remote notifications
8 Upload p8 file on firebase console.
9 and you're done! Test your notification :)
Note: Don't forget to use actual device to test this feature. iOS Simulator doesn't support notifications.
App Crash Issue: Make sure that platforms/ios/MyApp/Resources/Resources/GoogleService-Info.plist and platforms/ios/MyApp/Resources/GoogleService-Info.plist
are same and complete. An incomplete file on any of the above paths can lead to crashing of the app.
In iOS 7 how can a process be started and ran while the app is not running. I want to be able to sync data to my app without user interaction. I have heard that this is now possible in iOS 7. Ideally I will be using APNS to start the sync in the background without the user interacting(which is impossible on iOS6).
Yes you can.read more detail about this on https://developer.apple.com/library/ios/releasenotes/General/WhatsNewIniOS/Articles/iOS7.html#//apple_ref/doc/uid/TP40013162-SW5