# Ionic Native

**URL:** https://forum.ionicframework.com/c/ionic-native/19.md?page=1

[Latest](https://forum.ionicframework.com/latest.md) · [Categories](https://forum.ionicframework.com/categories.md) · [Tags](https://forum.ionicframework.com/tags.md)

**Page:** 2

---

## [camera.getPicture returns error 20](https://forum.ionicframework.com/t/camera-getpicture-returns-error-20/109710)

<div class="topic-metadata">

**Author:** [@obinnae](https://forum.ionicframework.com/u/obinnae)\
**Replies:** 6\
**Last updated:** [October 16, 2023, 12:43pm UTC](https://forum.ionicframework.com/t/camera-getpicture-returns-error-20/109710 "2023-10-16T12:43:24Z")

</div>

I’m building an Ionic 3 app for Android, and am using the camera plugin for choosing a pic from the camera or the photo gallery. It works fine when testing on Samsung Galaxy S4 running Android 5.1, and worked on the Andr…

---

## [Ionic 4: phonegap-plugin-barcodescanner is not reading the barcode code 128 with length more than 20](https://forum.ionicframework.com/t/ionic-4-phonegap-plugin-barcodescanner-is-not-reading-the-barcode-code-128-with-length-more-than-20/235736)

<div class="topic-metadata">

**Author:** [@Ashujaito](https://forum.ionicframework.com/u/Ashujaito)\
**Replies:** 0\
**Last updated:** [August 22, 2023, 5:22am UTC](https://forum.ionicframework.com/t/ionic-4-phonegap-plugin-barcodescanner-is-not-reading-the-barcode-code-128-with-length-more-than-20/235736 "2023-08-22T05:22:07Z")

</div>

Hi everyone, I have been using Ionic 4 for my mobile application. I have installed phonegap-plugin-barcodescanner plugin for barcode scanning which is encoded in code128 format. But due to some unknown reason, the plugi…

---

## [FileSystem.writeFile only work in live mode](https://forum.ionicframework.com/t/filesystem-writefile-only-work-in-live-mode/235375)

<div class="topic-metadata">

**Author:** [@tunbk1002](https://forum.ionicframework.com/u/tunbk1002)\
**Replies:** 0\
**Last updated:** [August 4, 2023, 2:26pm UTC](https://forum.ionicframework.com/t/filesystem-writefile-only-work-in-live-mode/235375 "2023-08-04T14:26:25Z")

</div>

Hello, I’m having quite a problem now. Running the app using ionic capacitor run android --livereload --external worked as expected. Reading and writing normally to the native filesystem. But whenever I tried to remove…

---

## [Geofence on Ionic 4 with Cordova or Capacitor not working](https://forum.ionicframework.com/t/geofence-on-ionic-4-with-cordova-or-capacitor-not-working/172181)

<div class="topic-metadata">

**Author:** [@vancurengroup](https://forum.ionicframework.com/u/vancurengroup)\
**Replies:** 7\
**Last updated:** [July 13, 2023, 4:32pm UTC](https://forum.ionicframework.com/t/geofence-on-ionic-4-with-cordova-or-capacitor-not-working/172181 "2023-07-13T16:32:58Z")

</div>

Hi friends! Has anyone had any success implementing geofencing in Ionic 4 or Capacitor on Android? I have tried the three plugins below using Ionic 4 with Cordova and Android and then trying Ionic 4 with Capacitor. It …

---

## [Ionic nfc.connect](https://forum.ionicframework.com/t/ionic-nfc-connect/162210)

<div class="topic-metadata">

**Author:** [@madsmile](https://forum.ionicframework.com/u/madsmile)\
**Replies:** 3\
**Last updated:** [June 29, 2023, 3:10pm UTC](https://forum.ionicframework.com/t/ionic-nfc-connect/162210 "2023-06-29T15:10:01Z")

</div>

Hi, my ionic info Ionic: ionic (Ionic CLI) : 4.11.0 Ionic Framework : @ionic/angular 4.1.0 @angular-devkit/build-angular : 0.13.5 @angular-devkit/schematics : 7.2.4 @angular/c…

---

## [Announcing Auth Connect 4](https://forum.ionicframework.com/t/announcing-auth-connect-4/231563)

<div class="topic-metadata">

**Author:** [@system](https://forum.ionicframework.com/u/system)\
**Replies:** 0\
**Last updated:** [March 6, 2023, 3:02pm UTC](https://forum.ionicframework.com/t/announcing-auth-connect-4/231563 "2023-03-06T15:02:00Z")

</div>

Originally published at: https://ionic.io/blog/announcing-auth-connect-4 Today, we’re excited to announce the release of Auth Connect 4, Ionic’s premier solution for implementing authentication in mobile applications…

---

## [Environment public](https://forum.ionicframework.com/t/environment-public/234224)

<div class="topic-metadata">

**Author:** [@RaulGM3](https://forum.ionicframework.com/u/RaulGM3)\
**Replies:** 1\
**Last updated:** [June 16, 2023, 1:56pm UTC](https://forum.ionicframework.com/t/environment-public/234224 "2023-06-16T13:56:25Z")

</div>

Hello, everyone! I am working with angularfire with the openai api on my project. Are there any good practices on hiding the apikey? The thing is that environment.ts can be accessed from the dev tools in chrome, and th…

---

## [Pusher is only trying to connect wss with websocket server](https://forum.ionicframework.com/t/pusher-is-only-trying-to-connect-wss-with-websocket-server/234147)

<div class="topic-metadata">

**Author:** [@bookingtongmaster](https://forum.ionicframework.com/u/bookingtongmaster)\
**Replies:** 0\
**Last updated:** [June 14, 2023, 4:06am UTC](https://forum.ionicframework.com/t/pusher-is-only-trying-to-connect-wss-with-websocket-server/234147 "2023-06-14T04:06:24Z")

</div>

\[Problems and symptoms\] Through “ionic serve”, chrome of windows normally communicates with ws://, and there is no problem in operation. However, when running on android through the ionic cordova run android command, a…

---

## [USB-Serial\_Communication](https://forum.ionicframework.com/t/usb-serial-communication/233932)

<div class="topic-metadata">

**Author:** [@akshaykkulkarni](https://forum.ionicframework.com/u/akshaykkulkarni)\
**Replies:** 0\
**Last updated:** [June 5, 2023, 7:19am UTC](https://forum.ionicframework.com/t/usb-serial-communication/233932 "2023-06-05T07:19:59Z")

</div>

Hello, I am working on an APP where I need to communicate with the Aurdino through USB Serial Port. Is there any plugins (capacitor/cordova) available? Someone please suggest Thank You

---

## [How to use IPC to open an another app using its package id and send/receive data](https://forum.ionicframework.com/t/how-to-use-ipc-to-open-an-another-app-using-its-package-id-and-send-receive-data/233541)

<div class="topic-metadata">

**Author:** [@deepakkumarplus91](https://forum.ionicframework.com/u/deepakkumarplus91)\
**Replies:** 0\
**Last updated:** [May 17, 2023, 8:59am UTC](https://forum.ionicframework.com/t/how-to-use-ipc-to-open-an-another-app-using-its-package-id-and-send-receive-data/233541 "2023-05-17T08:59:10Z")

</div>

How to use IPC to open an another app using its package id and send/receive data in Ionic 5 Cordova

---

## [Web Intent](https://forum.ionicframework.com/t/web-intent/230249)

<div class="topic-metadata">

**Author:** [@lorandveger](https://forum.ionicframework.com/u/lorandveger)\
**Replies:** 1\
**Last updated:** [May 12, 2023, 10:21am UTC](https://forum.ionicframework.com/t/web-intent/230249 "2023-05-12T10:21:38Z")

</div>

Hi guys, Recently I got my app rejected from Play Store. We found that your app is not compliant with how REQUEST\_INSTALL\_PACKAGES permission is allowed to be used. Specifically, the use of the permission is not direc…

---

## [Ionic 4 Testing with Storage](https://forum.ionicframework.com/t/ionic-4-testing-with-storage/162229)

<div class="topic-metadata">

**Author:** [@jeremyy7](https://forum.ionicframework.com/u/jeremyy7)\
**Replies:** 1\
**Last updated:** [May 7, 2023, 12:14pm UTC](https://forum.ionicframework.com/t/ionic-4-testing-with-storage/162229 "2023-05-07T12:14:37Z")

</div>

Can someone provide me with an example of how to mock the Storage module and implement it? I am simply attempting to test a redirect but because the component uses Storage, I keep seeing an error: Failed: StaticInjecto…

---

## [Storage got cleaned when updated existing app from playstore: ionic 4](https://forum.ionicframework.com/t/storage-got-cleaned-when-updated-existing-app-from-playstore-ionic-4/163227)

<div class="topic-metadata">

**Author:** [@adminAbhishek](https://forum.ionicframework.com/u/adminAbhishek)\
**Replies:** 3\
**Last updated:** [April 30, 2023, 2:53pm UTC](https://forum.ionicframework.com/t/storage-got-cleaned-when-updated-existing-app-from-playstore-ionic-4/163227 "2023-04-30T14:53:39Z")

</div>

Hi, I have launched app before one month. Now uploaded update for same app. I used to update the same application from playstore. Application was installed properly.screens are ok.The issue of storage raised.I could n…

---

## [Opening Application setting using open native settings](https://forum.ionicframework.com/t/opening-application-setting-using-open-native-settings/229947)

<div class="topic-metadata">

**Author:** [@v22ismyname](https://forum.ionicframework.com/u/v22ismyname)\
**Replies:** 2\
**Last updated:** [April 28, 2023, 9:47am UTC](https://forum.ionicframework.com/t/opening-application-setting-using-open-native-settings/229947 "2023-04-28T09:47:00Z")

</div>

Hi I want to access the setting page for my ionic app what should I pass in as argument here in place of about this.plt.ready().then(()=\>{ this.openNativeSettings.open(“about”).then(val=\>{ }) }) Like if chro…

---

## [Error when I build with PhoneGap BarcodeScanner (ionic-native)](https://forum.ionicframework.com/t/error-when-i-build-with-phonegap-barcodescanner-ionic-native/218337)

<div class="topic-metadata">

**Author:** [@Loiic](https://forum.ionicframework.com/u/Loiic)\
**Replies:** 9\
**Last updated:** [April 15, 2023, 9:48am UTC](https://forum.ionicframework.com/t/error-when-i-build-with-phonegap-barcodescanner-ionic-native/218337 "2023-04-15T09:48:45Z")

</div>

Hello, I updated Angular from 9 to 12 (step by step) but now, I have an error when I try to build for Android. This error is related to Gradle and the plugin “phonegap-plugin-barcodescanner”: Could not find method com…

---

## [Issue in ftp file do](https://forum.ionicframework.com/t/issue-in-ftp-file-do/232670)

<div class="topic-metadata">

**Author:** [@sahil1608031](https://forum.ionicframework.com/u/sahil1608031)\
**Replies:** 0\
**Last updated:** [April 13, 2023, 11:18am UTC](https://forum.ionicframework.com/t/issue-in-ftp-file-do/232670 "2023-04-13T11:18:03Z")

</div>

Hi, I have a problem with Ionic native ftp I want to download and upload files through the FTP server. const localPath = Directory.Documents + “/text.txt” FTP.connect(userIp, userName, userPassword).then((result: any…

---

## [Speech FCM notification message in ionic angular in the background or when app is fired](https://forum.ionicframework.com/t/speech-fcm-notification-message-in-ionic-angular-in-the-background-or-when-app-is-fired/231728)

<div class="topic-metadata">

**Author:** [@ashwagamz](https://forum.ionicframework.com/u/ashwagamz)\
**Replies:** 1\
**Last updated:** [March 14, 2023, 7:21pm UTC](https://forum.ionicframework.com/t/speech-fcm-notification-message-in-ionic-angular-in-the-background-or-when-app-is-fired/231728 "2023-03-14T19:21:32Z")

</div>

Hello there I spent a long time to trying to speak the FCM notification message when received in the background mode, but the custom audio/sound was not playing only the device’s default notification sound played. I tr…

---

## [Ionic Social Share Facebook Android](https://forum.ionicframework.com/t/ionic-social-share-facebook-android/188654)

<div class="topic-metadata">

**Author:** [@sejpalbhavik](https://forum.ionicframework.com/u/sejpalbhavik)\
**Replies:** 4\
**Last updated:** [February 17, 2023, 4:45pm UTC](https://forum.ionicframework.com/t/ionic-social-share-facebook-android/188654 "2023-02-17T16:45:22Z")

</div>

Can we share content, image, and url on facebook via ionic social share in android.

---

## [Whatzappp sharing with Social Sharing](https://forum.ionicframework.com/t/whatzappp-sharing-with-social-sharing/217815)

<div class="topic-metadata">

**Author:** [@lsantaniello](https://forum.ionicframework.com/u/lsantaniello)\
**Replies:** 1\
**Last updated:** [February 17, 2023, 4:40pm UTC](https://forum.ionicframework.com/t/whatzappp-sharing-with-social-sharing/217815 "2023-02-17T16:40:15Z")

</div>

Hi, I need to integrate Whatzapp sharing on my ionic 5 app. I built android app but when I share on whatzapp, I receive a strange error on a specific device. On others devices, it works. Whatzapp sharing error (5) \['…

---

## [BLE plugin write returning ok but not working](https://forum.ionicframework.com/t/ble-plugin-write-returning-ok-but-not-working/230983)

<div class="topic-metadata">

**Author:** [@wesleycpdev](https://forum.ionicframework.com/u/wesleycpdev)\
**Replies:** 2\
**Last updated:** [February 16, 2023, 2:17pm UTC](https://forum.ionicframework.com/t/ble-plugin-write-returning-ok-but-not-working/230983 "2023-02-16T14:17:39Z")

</div>

I am using BLE plugin to connect to printer (Model SEWOO LK-P400), I want just to send a “Hello World” test, the connect and disconnect part is ok, I wrote the WRITE function this way: async print() { let text = new…

---

## [I need video player with subtitle](https://forum.ionicframework.com/t/i-need-video-player-with-subtitle/169853)

<div class="topic-metadata">

**Author:** [@hussein4alaa](https://forum.ionicframework.com/u/hussein4alaa)\
**Replies:** 2\
**Last updated:** [February 16, 2023, 11:19am UTC](https://forum.ionicframework.com/t/i-need-video-player-with-subtitle/169853 "2023-02-16T11:19:09Z")

</div>

hello my friends i need video player can play video with caption please :pensive:

---

## [Upgraded to Android 2022.1.1 Patch 1 and now my project does not work](https://forum.ionicframework.com/t/upgraded-to-android-2022-1-1-patch-1-and-now-my-project-does-not-work/231079)

<div class="topic-metadata">

**Author:** [@wekas](https://forum.ionicframework.com/u/wekas)\
**Replies:** 2\
**Last updated:** [February 14, 2023, 7:45pm UTC](https://forum.ionicframework.com/t/upgraded-to-android-2022-1-1-patch-1-and-now-my-project-does-not-work/231079 "2023-02-14T19:45:01Z")

</div>

I get the error: Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0 Any suggestions?

---

## [Extended Device Information](https://forum.ionicframework.com/t/extended-device-information/183631)

<div class="topic-metadata">

**Author:** [@neopelina](https://forum.ionicframework.com/u/neopelina)\
**Replies:** 5\
**Last updated:** [February 3, 2023, 6:57am UTC](https://forum.ionicframework.com/t/extended-device-information/183631 "2023-02-03T06:57:39Z")

</div>

Hi, I get the following error trying to access any of the function of the plugin: Native: tried calling ExtendedDeviceInformation.memory, but the ExtendedDeviceInformation plugin is not installed.

---

## [Permissions location ios ":// would like to use your current location"](https://forum.ionicframework.com/t/permissions-location-ios-would-like-to-use-your-current-location/227603)

<div class="topic-metadata">

**Author:** [@santiago\_vasquez06](https://forum.ionicframework.com/u/santiago_vasquez06)\
**Replies:** 7\
**Last updated:** [February 3, 2023, 3:33am UTC](https://forum.ionicframework.com/t/permissions-location-ios-would-like-to-use-your-current-location/227603 "2023-02-03T03:33:32Z")

</div>

Hello every one, I want change the name in the dialog that ios show me. the text say: “:// Would like to use your current location” also Why show me this name the app :// ? I know that alert is required by ios. Bu…

---

## [Android Push Notifications custom sound not working](https://forum.ionicframework.com/t/android-push-notifications-custom-sound-not-working/226646)

<div class="topic-metadata">

**Author:** [@walid1992d](https://forum.ionicframework.com/u/walid1992d)\
**Replies:** 1\
**Last updated:** [January 17, 2023, 12:19pm UTC](https://forum.ionicframework.com/t/android-push-notifications-custom-sound-not-working/226646 "2023-01-17T12:19:57Z")

</div>

I am using Ionic react 6 with capacitor 4 to build an app that requires notifications with custom sound, but its always coming with default sound, I created a push notification channel using this code: PushNotificati…

---

## [THREAD WARNING: exec() call to BackgroundModeExt.foreground blocked the main thread for 41ms. Plugin should use CordovaInterface.getThreadPool(). #2](https://forum.ionicframework.com/t/thread-warning-exec-call-to-backgroundmodeext-foreground-blocked-the-main-thread-for-41ms-plugin-should-use-cordovainterface-getthreadpool-2/230147)

<div class="topic-metadata">

**Author:** [@santiago\_vasquez06](https://forum.ionicframework.com/u/santiago_vasquez06)\
**Replies:** 2\
**Last updated:** [January 10, 2023, 4:02pm UTC](https://forum.ionicframework.com/t/thread-warning-exec-call-to-backgroundmodeext-foreground-blocked-the-main-thread-for-41ms-plugin-should-use-cordovainterface-getthreadpool-2/230147 "2023-01-10T16:02:08Z")

</div>

Hello everyone, I have this problem. when I call cordova.plugins.backgroundMode.moveToForeground(); It always works for me the first time, then I enter another application, for example Facebook, and this message is disp…

---

## [Camera stream preview work only when touch moving](https://forum.ionicframework.com/t/camera-stream-preview-work-only-when-touch-moving/230093)

<div class="topic-metadata">

**Author:** [@Khayrullin](https://forum.ionicframework.com/u/Khayrullin)\
**Replies:** 0\
**Last updated:** [January 7, 2023, 1:14am UTC](https://forum.ionicframework.com/t/camera-stream-preview-work-only-when-touch-moving/230093 "2023-01-07T01:14:53Z")

</div>

when i route app to external website camera stream preview work only when touching android private void loadWebView() { // ... webView.loadUrl("https://mysite.com/"); } on mysite.com js \<!doctype html\> \<html\> …

---

## [Application Error net::ERR\_CONNECTION\_REFUSED (http://localhost/)](https://forum.ionicframework.com/t/application-error-net-err-connection-refused-http-localhost/169958)

<div class="topic-metadata">

**Author:** [@hussein4alaa](https://forum.ionicframework.com/u/hussein4alaa)\
**Replies:** 4\
**Last updated:** [December 30, 2022, 8:16am UTC](https://forum.ionicframework.com/t/application-error-net-err-connection-refused-http-localhost/169958 "2022-12-30T08:16:44Z")

</div>

hello i create app in ionic4 type=angular but when i build apk file I got this error message i need a help

---

## [Error with cordova-plugin-firebase](https://forum.ionicframework.com/t/error-with-cordova-plugin-firebase/161220)

<div class="topic-metadata">

**Author:** [@Weihang](https://forum.ionicframework.com/u/Weihang)\
**Replies:** 4\
**Last updated:** [December 29, 2022, 12:38am UTC](https://forum.ionicframework.com/t/error-with-cordova-plugin-firebase/161220 "2022-12-29T00:38:09Z")

</div>

I recently added firebase plugins for push notifications, it worked on Android device but for iOS device, I tried to build the ionic cordova app on xcode, and it shows WARN: Ionic Native: tried calling Firebase.getTo…

---

## [ERROR in node\_modules/@ionic-native/core/decorators/common.d.ts(9,118): error TS2304: Cannot find name 'unknown'](https://forum.ionicframework.com/t/error-in-node-modules-ionic-native-core-decorators-common-d-ts-9-118-error-ts2304-cannot-find-name-unknown/229390)

<div class="topic-metadata">

**Author:** [@Sahani18](https://forum.ionicframework.com/u/Sahani18)\
**Replies:** 0\
**Last updated:** [December 8, 2022, 11:32am UTC](https://forum.ionicframework.com/t/error-in-node-modules-ionic-native-core-decorators-common-d-ts-9-118-error-ts2304-cannot-find-name-unknown/229390 "2022-12-08T11:32:00Z")

</div>

Hi developer, When I’m running “ionic serve” command on Android studio or VS code I’m getting this error- ERROR in node\_modules/@ionic-native/core/decorators/common.d.ts(9,118): error TS2304: Cannot find name ‘unknown’. …

[Previous page](https://forum.ionicframework.com/c/ionic-native/19.md)

[Next page](https://forum.ionicframework.com/c/ionic-native/19.md?page=2)
