Questions tagged [ionic-native]
The tag specific for ionic-native, a replacement for using ngCordova and supports ionic 1, 2, 3 and 4, and since ngCordova tag is existing this tag must exist as well, the ngCordova is such a different tag and not related to ionic-native, so it is helpful to avoid any conflict between these two tags.
1,120
questions
0
votes
0answers
8 views
Ionic Capacitor how to get currently playing audio/music?
So I'm creating an ionic app and I want to display the currently playing audio/music, I'm wondering if there is something in the ionic native api or capacitor to get that info or some other solution.
0
votes
0answers
7 views
Ionic file.WriteFile() does not work to create PNG from Blob
I am trying to write a blob to a png file using Ionic 5. But I get an error Uncaught (in promise): TypeError: undefined is not an object (evaluating 'this.file')
I try to create a simple .txt file ...
0
votes
1answer
16 views
How to open an android app using a deeplink that contains a token?
I'm generation an android application from an ionic application , and i want to open it when i click on a registration link that contains a token ( http://localhost:8100/signup/token) using deeplinks. ...
0
votes
0answers
17 views
How do I change Recent screen icon in Ionic Framework?
Hi I just noticed the icons provided for app is shown properly in the launcher , but when it comes to the "Recent screen" I am able to see the android head(default) icon only. Is there a way ...
0
votes
0answers
37 views
Ionic 5 Capacitor project change status bar and navigation bar style and background color
for the last 3 weeks I’ve been struggling to edit the status bar text color and navigation background color and actions colors.
I’ve tried a lot of resources, I’ve understood that a lot of plugins are ...
0
votes
0answers
14 views
IonicMenu Doesn't Open After Switching Tabs
Hello guys I am working with the IonicMenu component. I have the menu in four different tabs. The menu opens and closes perfectly on the initial tab and when I switch tabs from left to right, but when ...
0
votes
1answer
19 views
How to create the ionic slider with shows some pixels of next and previous slides in the present slide
i have created the sliders like this
but i need something like this
Here is my code
<ion-slides [options]="slideOpts_slider">
<ion-slide>
<img src="/assets/images/...
0
votes
1answer
63 views
The target entry-point “@ionic-native/media-capture” has missing dependencies: - @ionic-native/core
When I try to build my ionic mobile app on android I get the following error.
An error occurred during the build:
Error: The target entry-point "@ionic-native/media-capture" has missing ...
0
votes
1answer
30 views
how to open PDF URL into the app without downloading in ionic 5
i am already try with this plugin but no luck
how to achieve like this
https://ionicframework.com/docs/native/file-opener
https://ionicframework.com/docs/native/document-viewer
0
votes
0answers
24 views
Opening an IonMenu with ButtonClick
I am trying to open an IonMenu through a button click. Originally, I implemented IonPopover and am wanting to switch to IonMenu. Using IonPopover, my options would appear and the code would work. ...
0
votes
0answers
18 views
how to set height and width in ionic streaming-media (Video Player) in ionic 5
page.ts
start() {
let options: StreamingVideoOptions = {
// successCallback: () => { console.log('Video played') },
// errorCallback: (e) => { console.log('Error streaming') },
...
0
votes
0answers
14 views
Build error in mac after installing push plugin or adding ios platform
"framework" tag with type "podspec" is deprecated and will be removed. Please use the "podspec" tag.
Failed to install 'phonegap-plugin-push': Error: pod: Command failed ...
1
vote
3answers
179 views
Android Error - Access denied unable to save cropped image
I have an Ionic 5/Angular app that uses the Ionic Native Camera plugin to take pictures and crop the images. The functionality worked fine until I updated to Android 11 (using note 10 plus). After the ...
0
votes
1answer
39 views
How to upload an image coming from the Ionic's Camera to firebase?
I've managed to take a picture using Ionic camera API:
async pickImage(sourceType: CameraSource) {
const image = await Camera.getPhoto({
quality: 90,
allowEditing: true,
...
0
votes
1answer
24 views
ionic native api not working with vue, how to achieve it?
when i install
npm install cordova-plugin-native-ringtones in my ionic vue project got this following error
Failed to compile.
./node_modules/@ionic-native/native-ringtones/ngx/index.js
Module not ...
1
vote
0answers
8 views
Download and play audio file in chunkedMode with @ionic-native/file-transfer/ngx
I am creating a media player. Where I want to play an audio file just as youtube. Download in chunk mode and play that part. Can anyone help me with this?
0
votes
1answer
25 views
Using an ionic native plugin only on Android
I have an interesting use cases where I would like to use an ionic native plugin namely, bluetooth-serial only on one platform out of two. So I would like to use it on Android but not on iOS. Is there ...
0
votes
0answers
24 views
Cannot display data of api on cards using ionic-http-plugin
I made a small application where want to display data from news-api on cards using ionic-http-plugin. But I am unable to display data on cards. Can someone tell what i am missing? I am unable to get ...
0
votes
0answers
11 views
Unauthorized get src image
I need to show an image of an api, when I put the address on the srcI have the error of unauthorized GET.When I try to do the access process by Postman managed to download the image and view it ...
0
votes
0answers
23 views
UNAUTHORIZED_PAYMENT Ionic 4, request failure with http statusCode:401,exception: , system error
paypal.sdk: request failure with http statusCode:401,exception:
paypal.sdk: request failed with server response:{"name":"UNAUTHORIZED_PAYMENT","message":"...
0
votes
0answers
24 views
Ionic 5 - ion-item requires 2 clicks in IOS to trigger onclick event
Below code is using to open modal on click of ion-item
<ion-item lines="none" (click)="selectDepartment()" class="m-0 ion-float-left w100">
<ion-input ...
1
vote
0answers
21 views
Ionic text to speech not canceling on ios device
I'm trying to get the following code to work:
import { TextToSpeech } from '@ionic-native/text-to-speech/ngx';
constructor(
private tts: TextToSpeech
) {}
ttsActive: boolean;
public ...
0
votes
0answers
14 views
socket is not working, when i close or kill the app in my ionic4 app
In my app i integrated sockets. it is working fine as expected but when i close(kill) the app or when it is in background. it is not working is there any solution to fix this issue.
0
votes
0answers
23 views
Ionic phone authentication custom plug in doesn't set firebase.auth().currentUser
previously for my project, I tried creating phone authentication on ionic on android the Recaptcha worked and would send OTP without issues however on ios there were issues with Recaptcha. To fix this ...
0
votes
1answer
37 views
ionic4 base64 native plugin not working in android target sdk 29
In my ionic app i integrated ionic4 native base64 plugin, it was working fine in all android os mobiles when my android target sdk 28. due to play store restriction i have changed tragetSDK 28 to 29 ...
1
vote
2answers
44 views
My ionic app keeps restarting instead of resuming from last active page
I am creating an android app built with angualar/ionic 5. and currently testing with android studio via enabled debugger on an android device.
The apps works well except for one issue.
The app, when ...
0
votes
0answers
18 views
Using ionic media plugin to create a voice recording app
I'm creating a voice recording app using ionic and angular but I'm struggling with some features. I'm already able to start a recording, stop it, pause it, listen the file and rewind.
The problem that ...
0
votes
1answer
17 views
background mode plugin_not_installed , even background mode plugin is already installed in ionic project
background mode "plugin_not_installed", even background mode plugin is already installed in ionic project
error Showing in console
{
[ng] "error": "plugin_not_installed&...
0
votes
1answer
82 views
NOT_FOUND_ERR while trying to load Ionic file as blob from android device
I am getting a FileError {code: 1} while trying to load a file from my android device using cordova-plugin-file. My code:
import { File } from '@ionic-native/file/ngx';
...
private loadGpkgBlob(): ...
1
vote
1answer
59 views
How to run the Constructor or ngOnInit twice or more
The situation I have is the following:
I have an app in which I have several screens, in one of them I have a list of articles, when clicking on an item it takes me to another screen where the detail ...
0
votes
0answers
20 views
Ionic Media Native audio file - button events
I'm using button events to trigger and end audio recording:
<ion-button slot="end" (touchstart)="startRecordAudio()" (touchend)="endRecordAudio()">
...
0
votes
2answers
94 views
Background mode is not working in ionic 5
Uncaught TypeError: Object(...) is not a function
at index.js:249
at Module../node_modules/@ionic-native/background-mode/index.js (index.js:405)
at __webpack_require__ (bootstrap:84)
...
0
votes
0answers
17 views
In Ionic 5 how to find local path to cordova plugin
I am trying to integrate an authentication SDK (Snapchat) and receive a deep link back from the app once user has logged in. I have an AppDelegate.m file inside the plugin folder. What is the correct ...
1
vote
2answers
67 views
The keyboard covers the input field in ios - Ionic 5
I've been with this same problem for months and I still can't find a solution. I have an application where there are several forms, when focusing on an input field the keyboard covers this input field ...
3
votes
2answers
61 views
Google playstore permissions error on app release
Hi to all hope you doing good.
I am releasing an app and found an error of
Your app has an APK with version code 1 that requests the following permissions: android.permission.CAMERA, android....
0
votes
0answers
52 views
Ionic InAppBrowser blank page in iOS
I want to open the URL directly in the app. In Android it is working fine. On iOS it only shows a blank white screen after starting. I have set target to _blank, because I do now want iOS to open the ...
0
votes
1answer
64 views
Ionic App taking more time to load with splash screen and white screen
I have created an Ionic app but the load time is too much and sometime white screen appears before loading.
How can i reduce the load time?
Issue i am facing as below:
If i keep value as 6000, i am ...
0
votes
0answers
11 views
Access file src in Ionic Media file
I am creating an audio file when a user clicks to record. The file is created but I can not access the src to play it back. How would I access the source from the object below. I tried file['path']....
0
votes
0answers
12 views
How can I publish Ionic JS app as android/iOS?
I created an app using JS codes for ionic. My code looks like this https://github.com/ionic-team/ionic-docs/blob/master/src/demos/api/content/index.html (with HTML, style, script tags).
Can I export ...
0
votes
1answer
177 views
NodeJs error of 'The ESM module loader is experimental' after using --experimental-modules
I wrote this on package.json
"start:server": "nodemon --experimental-modules --es-module-specifier-resolution=node src/index server.js"
OR
"start:server": "nodemon ...
1
vote
0answers
31 views
cordova bluetoothSerial.discoverUnpaired does not emit values in android 10
We recently bought a new samsung galaxy tab A7 with android 10 and wanted to test our ionic 5 app which uses cordova bluetooth serial plugin and ionic's wrapper.
The bluetoothSerial.discoverUnpaired ...
0
votes
1answer
85 views
Check if my ionic app has a new version on AppStore and PlayStore
I would like to add functionality to my Ionic based application to check the respective app store for a newer version, and if present, prompt the user to download once (not repeatedly- they should be ...
0
votes
1answer
23 views
Ionic 5 plugin undefined on IOS
I installed the TextToSpeech Cordova Plugin on my Ionic App:
"@ionic-native/text-to-speech": "^5.30.0",
"cordova-plugin-tts": "^0.2.3",
And used it in my vue ...
0
votes
2answers
93 views
Keyboard hides inputs - Ionic 5 [closed]
I have a problem with my application made with Ionic 5 / angular. What happens is that when I focus on an input the keyboard lifts up and covers the selected input. Is there a way to avoid this ...
0
votes
0answers
18 views
How to write a file using Ionic 6.12.2 @ionic-native/file and Cordova 10.0 cordova.plugin.file for Android?
This is the code I'm using. It dosen't work , I do'nt know what i'm doing worng? Can you please help me. I'm new in ionic and cordova framework and i would like to know why this code not working on ...
0
votes
1answer
91 views
Getting Fingerprint AIO err: plugin_not_installed when i try to run the application
I have an Ionic 3 app with "cordova-android": "^8.1.0".
I want to implement biometrics in my app with @ionic-native/fingerprint-aio
I have installed the plugin for my Ionic 3 app ...
0
votes
0answers
43 views
Ionic5: Create a Native wrapper for Cordova plugin - ionic-native - ivy support
I'm trying to rebuild my Ionic Native custom plugin using Ionic native git workspace to update it and have Ivy support.
The build process ends correctly, using the "npm run build" command, ...
1
vote
1answer
2k views
ionic : File C:\Users\Admin\AppData\Roaming\npm\ionic.ps1 cannot be loaded because running scripts is disabled on this system
ionic : File C:\Users\Admin\AppData\Roaming\npm\ionic.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at
https:/go.microsoft....
0
votes
1answer
184 views
ionic ios build failed with code 65 cordova-plugin-firebase-lib
** BUILD FAILED **
The following build commands failed:
/Users/andreibobocea/Library/Developer/Xcode/DerivedData/2MIL-fmvwsooudyjevcgvbdlehkoxtgwh/Build/Intermediates.noindex/2MIL.build/Debug-...
0
votes
0answers
28 views
ReferenceError: UXCam is not defined
How do I provide the UXCam instance to AppComponent during unit tests?
I'm writing tests for an existing app, that has an integration with UXCam.
The app.component.ts file has the following line:
...