Quantcast
Channel: Ionic Forum - Latest posts
Viewing all 230571 articles
Browse latest View live

Handling Privacy Manifest Requirements with Outdated Firebase and Angular Version

$
0
0

@iujajai I did not have those ones but here are where mine were.
I actually used a freelancer that specialises in this so if you are stuck pm me and I can pass on their details if you like. They are affordable and know what they are doing.

  1. Capacitor.framework/Capacitor
    capacitor/ios/Capacitor/Capacitor/PrivacyInfo.xcprivacy at 5f092970e33da1ec896efc4e2a5ae3fb77fca658 · ionic-team/capacitor · GitHub
  2. Cordova.framework/Cordova
    cordova-ios/templates/project/App/PrivacyInfo.xcprivacy at 5cf4d943d9767bbf69b3ba3ae0e2f2037f0da7bb · apache/cordova-ios · GitHub
  3. FBLPromises.framework/FBLPromises
    promises/Sources/FBLPromises/Resources/PrivacyInfo.xcprivacy at d6d659a6cbdd4108788781d178a72fd34ce07e6e · google/promises · GitHub
  4. FirebaseCore.framework/FirebaseCore
    firebase-ios-sdk/FirebaseCore/Sources/Resources/PrivacyInfo.xcprivacy at b888e1e35f1b07d737d6d4be1b02d96b530a9a77 · firebase/firebase-ios-sdk · GitHub
  5. FirebaseCoreDiagnostics.framework/FirebaseCoreDiagnostics
  6. FirebaseDynamicLinks.framework/FirebaseDynamicLinks
    firebase-ios-sdk/FirebaseDynamicLinks/Sources/Resources/PrivacyInfo.xcprivacy at b888e1e35f1b07d737d6d4be1b02d96b530a9a77 · firebase/firebase-ios-sdk · GitHub
  7. FirebaseInstallations.framework/FirebaseInstallations
    firebase-ios-sdk/FirebaseInstallations/Source/Library/Resources/PrivacyInfo.xcprivacy at b888e1e35f1b07d737d6d4be1b02d96b530a9a77 · firebase/firebase-ios-sdk · GitHub
  8. FirebaseMessaging.framework/FirebaseMessaging
    firebase-ios-sdk/FirebaseMessaging/Sources/Resources/PrivacyInfo.xcprivacy at b888e1e35f1b07d737d6d4be1b02d96b530a9a77 · firebase/firebase-ios-sdk · GitHub
  9. GoogleDataTransport.framework/GoogleDataTransport
    GoogleDataTransport/GoogleDataTransport/Resources/PrivacyInfo.xcprivacy at c6afba69ca5a5dd956de23303c6a77599c404324 · google/GoogleDataTransport · GitHub
  10. GoogleUtilities.framework/GoogleUtilities
    GoogleUtilities/GoogleUtilities/Privacy/Resources/PrivacyInfo.xcprivacy at ba8e711dc052d88063038ccc60539d00dadcd697 · google/GoogleUtilities · GitHub
  11. nanopb.framework/nanopb
    nanopb/spm_resources/PrivacyInfo.xcprivacy at fc7d53c3fea3ce04af5b98234feaa1c7400f73d6 · nanopb/nanopb · GitHub

Capacitor Overscroll Behaviour

Handling Privacy Manifest Requirements with Outdated Firebase and Angular Version

$
0
0

I had the same issue and managed to solve most of them by creating the privacy file manually for the problematic PODs.
However, this final one is really weird “Frameworks/Cordova.framework/Cordova”
I do not find this POD/Framework.
How did you manage to resolve this particular one?
Thanks.

Issue with Ngx-Formly use to Ionic 8

$
0
0

Thank you for your response! I downgraded my project from Ionic 8 to 7, and I’m currently able to use @ngx-formly/ionic v6. Do you have any plans for Ionic 8 support? Could you share any updates on future releases?

Konu Başlığı:

$
0
0

Hi guys,

Can you help me? I have tested this on both Ionic 7 and Ionic 8. On Android devices, the splash screen appears as a circle, but on iOS devices, it covers the full screen.
What is the reason for this behavior? How can I make the splash screen appear full-screen on both platforms?

Issue with Ngx-Formly use to Ionic 8

Android Splash screen only shows app icon

Camera access in Intranet / LAN website

$
0
0

Hello everyone, I am developing a Capacitor android app, which i am using as a wrapper to load a intranet website.
The intranet website is working in a LAN ip, which i am opening. Something like http://192.168.1.11/, something like this.

In that intranet website navigator.getUserMedia is being used to access the camera to Scan QR codes. However since the website is from http origin, thus getUserMedia is undefined, cause it is not a secure context.

I was hoping to somehow customize the WebView code, to maybe somehow allow this in my app.

Does anyone know how to make this work ? I would like to have some reference or code that would allow the WebView to allow access to getUserMedia in any context.


IN APP Purchase with capacitor and react

$
0
0

As per today in 2025, Glassfy is not working anymore. And besides RevenueCat and Fovea, there is capacitor-subscriptions - npm, which is in Beta.

I was using the fovea one for “Donations” purchases where I do not care about know the real state of the purchase, and It works ok for that.

For now that I want to enable subscriptions the history is not that happy. I am working mostly on Android and it has a really old and critical error, that when you cancel a subscription, the plugin never gets that info unless you reload the whole window. Which of course is dumb…

Also their Testing platform is really bad for unit testing since it keeps everything on a single object mutating everything without any way to reset it.

@twestrick Do you know if RevenueCat has a good testing harness to go from unit, to integration to e2e tests?

Variables.scss seems to be ignored after upgrading from ionic 6 to 7 to 8

$
0
0

I had the same problem. This works. Thx!

Handling Privacy Manifest Requirements with Outdated Firebase and Angular Version

$
0
0

I did not do it myself but see #2 in my list above. Does that help?

Setting up Supabase Google OAuth with Capacitor (android)

$
0
0

Somewhat old topic/question but I wanted to give a reasonably newer answer for anyone that’s struggling in 2025.

Today there’s a way to use Universal Links (Deep Links) which is more secure than the custom app domains, but for the most part other solutions in this post still apply.

  1. You do not need to use the PKCE option, actually don’t since this does not use a server
  2. CapacitorCookies does not need to be enabled
  3. The solution by @sjohns21 is correct, and I’ve actually noticed that we don’t get a refresh_token back from Supabase but it’s required in the setSession.

I’ve created a (long) tutorial going through the whole process of a blank Ionic web app all the way through creating a custom website for the Universal Link, linking it with Apple and creating the Capacitor app. The full work is here: Capacitor Google Authentication | Chris Weed

The tl;dr version:

  1. Create a vanilla Ionic web app
  2. Use the standard tutorial on Supabase to add a Google Auth button (the web login should work)
  3. Create a custom webpage with a custom domain name with the apple-app-site-association file
  4. Wrap your app in Capacitor using their instructions
  5. In Xcode link the app to your domain, give the app Web Association privilages
  6. Lastly make sure the redirect url is of your custom domain and website so that it launches the native app.

Gotchas:

  1. Some browsers don’t launch native apps (Brave and Orion are two as of this writing)
  2. You need to use the “consent” auth flow (see the gif below) otherwise the redirect will not open the native app.

There may be ways to improve this flow even more (in-app browser maybe?) but for now this is a pretty easy setup for anyone that’s trying to create an authenticated Capacitor app using Supabase and Google.

app-last

Clang: error: unsupported option '-G' for target 'arm64-apple-ios12.0-simulator'

$
0
0

When I am trying to build the ionic project for iOS, I am facing the below error.

clang: error: unsupported option ‘-G’ for target ‘arm64-apple-ios12.0-simulator’

The following build commands failed:
ScanDependencies /Users/ user/Library/Developer/Xcode/DerivedData/myProject-esqolbttvnmgzdanjfnjnxnsypks/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/BoringSSL-GRPC.build/Objects-normal/arm64/x_val.o /Users/ user/Projects/ /myProject\ Projects/myProject-Country-Code/platforms/ios/Pods/BoringSSL-GRPC/src/crypto/x509/x_val.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target ‘BoringSSL-GRPC’ from project ‘Pods’)

ScanDependencies /Users/ user/Library/Developer/Xcode/DerivedData/myProject-esqolbttvnmgzdanjfnjnxnsypks/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/BoringSSL-GRPC.build/Objects-normal/arm64/x_x509a.o /Users/ user/Projects/ /myProject\ Projects/myProject-Country-Code/platforms/ios/Pods/BoringSSL-GRPC/src/crypto/x509/x_x509a.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target ‘BoringSSL-GRPC’ from project ‘Pods’)

    ScanDependencies /Users/ user/Library/Developer/Xcode/DerivedData/myProject-esqolbttvnmgzdanjfnjnxnsypks/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/BoringSSL-GRPC.build/Objects-normal/arm64/x_x509.o /Users/ user/Projects/ /myProject\ Projects/myProject-Country-Code/platforms/ios/Pods/BoringSSL-GRPC/src/crypto/x509/x_x509.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'BoringSSL-GRPC' from project 'Pods')

    CompileC /Users/ user/Library/Developer/Xcode/DerivedData/myProject-esqolbttvnmgzdanjfnjnxnsypks/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/BoringSSL-GRPC.build/Objects-normal/arm64/tls_record.o /Users/ user/Projects/ /myProject\ Projects/myProject-Country-Code/platforms/ios/Pods/BoringSSL-GRPC/src/ssl/tls_record.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'BoringSSL-GRPC' from project 'Pods')

    CompileC /Users/ user/Library/Developer/Xcode/DerivedData/myProject-esqolbttvnmgzdanjfnjnxnsypks/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/BoringSSL-GRPC.build/Objects-normal/arm64/tls_method.o /Users/ user/Projects/ /myProject\ Projects/myProject-Country-Code/platforms/ios/Pods/BoringSSL-GRPC/src/ssl/tls_method.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'BoringSSL-GRPC' from project 'Pods')

    CompileC /Users/ user/Library/Developer/Xcode/DerivedData/myProject-esqolbttvnmgzdanjfnjnxnsypks/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/BoringSSL-GRPC.build/Objects-normal/arm64/tls13_server.o /Users/ user/Projects/ /myProject\ Projects/myProject-Country-Code/platforms/ios/Pods/BoringSSL-GRPC/src/ssl/tls13_server.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'BoringSSL-GRPC' from project 'Pods')
type or paste code here
    CompileC /Users/ user/Library/Developer/Xcode/DerivedData/myProject-esqolbttvnmgzdanjfnjnxnsypks/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/BoringSSL-GRPC.build/Objects-normal/arm64/tls13_enc.o /Users/ user/Projects/ /myProject\ Projects/myProject-Country-Code/platforms/ios/Pods/BoringSSL-GRPC/src/ssl/tls13_enc.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'BoringSSL-GRPC' from project 'Pods')

Project Configuration
Ionic:

Ionic CLI : 6.16.3 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 5.9.4
@angular-devkit/build-angular : 0.1102.19
@angular-devkit/schematics : 11.2.19
@angular/cli : 11.2.19
@ionic/angular-toolkit : 3.1.1

Cordova:

Cordova CLI : 10.0.0 (cordova-lib@10.1.0)
Cordova Platforms : android 13.0.0, ios 7.1.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 14 other plugins)

Utility:

cordova-res : not installed globally
native-run (update available: 2.0.1) : 1.6.0

System:

Android SDK Tools : 26.1.1 (/Users/Jainish/Library/Android/sdk)
ios-deploy : 1.12.1
ios-sim : 8.0.2
NodeJS : v16.20.2 (/Users/Jainish/.nvm/versions/node/v16.20.2/bin/node)
npm : 8.19.4
OS : macOS
Xcode : Xcode 16.2 Build version 16C5032a

This is my Podfile

DO NOT MODIFY – auto-generated by Apache Cordova

source ‘https://cdn.cocoapods.org/
platform :ios, ‘12.0’
use_frameworks!
target ‘myProject’ do
project ‘myProject.xcodeproj’
pod ‘Firebase/Core’, ‘10.10.0’
pod ‘Firebase/Auth’, ‘10.10.0’
pod ‘Firebase/Messaging’, ‘10.10.0’
pod ‘Firebase/Performance’, ‘10.10.0’
pod ‘Firebase/RemoteConfig’, ‘10.10.0’
pod ‘Firebase/InAppMessaging’, ‘10.10.0’
pod ‘Firebase/Firestore’, ‘10.10.0’
pod ‘Firebase/Crashlytics’, ‘10.10.0’
pod ‘Firebase/Functions’, ‘10.10.0’
pod ‘Firebase/Installations’, ‘10.10.0’
pod ‘GoogleSignIn’, ‘6.2.4’
pod ‘GoogleTagManager’, ‘7.4.3’
end

post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings[‘DEBUG_INFORMATION_FORMAT’] = ‘dwarf-with-dsym’
config.build_settings[‘IPHONEOS_DEPLOYMENT_TARGET’] = ‘12.0’
if target.respond_to?(:product_type) and target.product_type == “com.apple.product-type.bundle”
config.build_settings[‘CODE_SIGNING_ALLOWED’] = ‘NO’
end
end
end
end

Please help me to fix this issue.

@ionic-native/base64 and @ionic-native/file-picker are not working in Ionic 7 – How to fix?

$
0
0

Hi all,

I recently upgraded my project to Ionic 7, and I’m trying to use Base64 and IOSFilePicker. Previously, I was able to import them like this:

import { Base64 } from '@ionic-native/base64/ngx';
import { IOSFilePicker } from '@ionic-native/file-picker/ngx';

However, after the upgrade, I can no longer import these modules. I’ve read that @ionic-native/* plugins have been deprecated and replaced by @awesome-cordova-plugins/*, so I tried updating them:

Steps I took:

  1. Installed the new plugins:
npm install @awesome-cordova-plugins/base64
npm install @awesome-cordova-plugins/file-picker
  1. Added the necessary Cordova plugins:
ionic cordova plugin add cordova-plugin-file
ionic cordova plugin add cordova-plugin-filepicker
  1. Updated my app.module.ts to register the providers:
import { Base64 } from '@awesome-cordova-plugins/base64/ngx';
import { IOSFilePicker } from '@awesome-cordova-plugins/file-picker/ngx';

@NgModule({
  providers: [
    Base64,
    IOSFilePicker
  ]
})

The Problem:

  • When trying to import Base64 and IOSFilePicker, I get a “Module not found” error.
  • I also encountered an RxJS compatibility issue after upgrading.

@ionic/angular”: “^7.0.0”,
“rxjs”: “~7.8.0”,

Camera error

$
0
0

We have some device Redmi12 Xiaomi with HyperOs 2.0.1.0 and Android 15. My app (ionic 8, capacitor 6, angular 16) use capacitor-mlkit/barcode-scanning. After the last upgrade, when use scan app crash and this is the error:
11:10:04.208 W onServiceDisconnected (crash or killed by oom): pid=28458 bindings:W S
11:10:04.277 D updateCloudCameraControllerInfoAsync: has aleardy start update task.
11:10:04.277 D waitForResult:
11:10:04.278 W Access denied finding property “vendor.camera.aux.packagelist”
11:10:04.279 W Access denied finding property “vendor.camera.aux.packagelistext”
11:10:04.279 W ignore the torch status update of camera: 2
11:10:04.279 D updateCloudCameraControllerInfoAsync: has aleardy start update task.
11:10:04.279 D waitForResult:
11:10:04.280 W Access denied finding property “vendor.camera.aux.packagelist”
11:10:04.280 W Access denied finding property “vendor.camera.aux.packagelistext”
11:10:04.281 W ignore the torch status update of camera: 3
11:10:04.303 E Camera 4 is not present. Ignore physical camera status change
11:10:04.347 E [ERROR:aw_browser_terminator.cc(165)] Renderer process (28458) crash detected (code -1).
11:10:04.355 E [ERROR:aw_browser_terminator.cc(113)] Render process (28458) kill (OOM or update) wasn’t handed by all associated webviews, killing application.

I’ve also tried to remove battery protection.

Someone can help me?

Monica


IN APP Purchase with capacitor and react

Clang: error: unsupported option '-G' for target 'arm64-apple-ios12.0-simulator'

$
0
0

Welcome! I did a quick Google search and found this issue. Looks like there are some solutions discussed.

@ionic-native/base64 and @ionic-native/file-picker are not working in Ionic 7 – How to fix?

$
0
0

Did you replace all @ionic-native/* packages with @awesome-cordova-plugins/*? Specifically double check for @ionic-native/core.

How to Access Call Log History in Ionic Capacitor for iOS?

$
0
0

Hello, fellow developers!

I’m working on an Ionic app with Capacitor, and I’m trying to access the native call log history on iOS devices. On Android, I can use the READ_CALL_LOG permission to get incoming, outgoing, and missed calls, but I’m unsure about how to do this on iOS since Apple has stricter privacy policies.

I’ve already explored CallKit, but it seems like it doesn’t provide access to the native iOS call logs. I’m wondering if there’s a way (using Capacitor plugins or any other native methods) to fetch the iOS call history for calls made on the native phone app?

Has anyone encountered this limitation or know of any alternative solutions for tracking call logs on iOS in a Capacitor app?

Any guidance would be greatly appreciated!

Thanks in advance!

@ionic-native/base64 and @ionic-native/file-picker are not working in Ionic 7 – How to fix?

$
0
0

Yes, most @ionic-native/* packages have been replaced with @awesome-cordova-plugins/*, including @awesome-cordova-plugins/core.

Viewing all 230571 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>