Hi, Im doing a project using camera preview and would like to call the getZoom function. However, when i run the function it only returns [object Promise]. I tried the setZoom to test my app and the setZoom works fine. Its just the getZoom and the getMaxZoom that would return that object. Help is greatly appreciated. Thanks.
Camera preview getZoom returns [object Promise]
Push notifications to APNSDevice were not sent to old users
We have changed the owner of our ios app
Since (I don’t know if it’s related) old users in the system do not receive notifications
I thought maybe we should manually update their registrationId
Can you please advise how to find the the cause of the problem
Or is it possible to manually update the registrationId?
We are using phonegap-plugin-push
pushObject.on('registration').subscribe((data: any) => {
console.log('device token -> ' + data.registrationId);
this.app.setRegistrationId(data.registrationId);
});
Ion-searchbar: pass filtered list results to another page
Yes you´re right, the naming in my project are not good and I have to rename some interfaces and services.
Thanks for your help and I´ll try your code immediately!
iOS App stuck at white Screen after SplashScreen
Did anyone tried this I found online would it work? As I’m non-tech guy let me know the solution
Steps to Reproduce
Steps to reproduce the behavior:
- cd project
ionic cordova run android --prod
- build successful
- the app starts automatically on Android phone
- splash screen shows and hides after seconds
- white screen
Related Code
Expected Behavior
The app works properly
Additional Context
- The project works good on PC browser and no error found in console. White screen only happened when project running on Android. (don’t have chance to run on the iOS platform)
- Seemingly no error in building process
- Android Version is 5.1.1
Additional anyone needs to know about different iOS emulators then check out if do like to run any iOS apps.
Android (S10) Error - sendUserActionEvent() mView returned
I have an app almost ready for release on android developed using ionic 4 and angular.
The issue is on load I get a flash where the screen images disappears for a fraction of a second. This issue is present on my S10 phone but not my Pixel C tablet (so maybe it’s a Samsung issue?). I preload all my images etc. and I hold on to the splash screen until I’ve confirmed everything is loaded.
When I attach the debugger to my S10 phone in Android Studio I get this error:
E/ViewRootImpl: sendUserActionEvent() mView returned
I’ve searched through lots of posts with most people reporting a similar error message (mView==null) but no solutions to this error. Has anyone seen this before or have any clue what the issue might be?
Thanks for any help
Events not worked in ionic 6.1.0
import { Events} from ‘@ionic/angular’;
when i tried the previous import i receive next error
Module ‘"…/…/…/…/node_modules/@ionic/angular/ionic-angular"’ has no exported member ‘Events’.
Facebook login iOS (native)
I am also facing the similar issue and tried above solutions but couldnt correct it.
please help
How can I use events in Ionic 4 through ion-alert?
I have very little experience with ionic, and I was trying to search how to do an event but I’m failing, so since I’ve wasted some time I am reaching you guys.
I have 2 ion-alerts and 1 ion-grid and whenever I change a field in any of these ion alerts(they are related through some calculation) I want to refresh information in a ion-col.
How can I do that? When I click the button ‘ok’ I want to refresh that ion-col data.
Here’s my code:
async end() {
const alert = await this.alertController.create({
header: this.labels.end(),
inputs: [
{
name: 'hh',
type: 'number',
placeholder: 'Hours',
min: 0,
max: 23
},
{
name: 'mm',
type: 'number',
placeholder: 'Minutes',
min: 0,
max: 59
}
],
buttons: [
{
text: 'Cancel',
role: 'cancel'
}, {
text: 'Ok',
handler: async (data) => {
if (data.hh < 0 || data.hh > 23) {
const wronghour = await this.alertController.create({
header: this.labels.wrongHour(),
buttons: ['OK']
});
wronghour.present();
} else if (data.mm < 0 || data.mm > 59) {
const wrongminute = await this.alertController.create({
header: this.labels.wrongMinute(),
buttons: ['OK']
});
wrongminute.present();
} else {
this.end_t = (data.hh < 10 ? '0' + data.hh : '' + data.hh) + (data.mm < 10 ? '0' + data.mm : '' + data.mm);
}
}
}
]
});
await alert.present();
}
async begin() {
const alert = await this.alertController.create({
header: this.labels.beginning(),
inputs: [
{
name: 'hh',
type: 'number',
placeholder: 'Hours',
min: 0,
max: 23
},
{
name: 'mm',
type: 'number',
placeholder: 'Minutes',
min: 0,
max: 59
}
],
buttons: [
{
text: 'Cancel',
role: 'cancel'
}, {
text: 'Ok',
handler: async (data) => {
if (data.hh < 0 || data.hh > 23) {
const wronghour = await this.alertController.create({
header: this.labels.wrongHour(),
buttons: ['OK']
});
wronghour.present();
} else if (data.mm < 0 || data.mm > 59) {
const wrongminute = await this.alertController.create({
header: this.labels.wrongMinute(),
buttons: ['OK']
});
wrongminute.present();
} else {
this.begin_t = (data.hh < 10 ? '0' + data.hh : '' + data.hh) + (data.mm < 10 ? '0' + data.mm : '' + data.mm);
}
}
}
]
});
await alert.present();
}
<ion-row (click)="begin()">
<ion-col size="0.1" style="padding: 0"></ion-col>
<ion-col size="5" class="labels-desc" style="padding: 0">
<b>
Beginning
</b>
</ion-col>
<ion-col size="0.9" style="padding: 0">
</ion-col>
<ion-col size="5.8" class="to-right" style="font-size: 25px; padding: 0">
<ion-label class="border-bottom" style="padding: 0">
{{ begin_t | slice:0:2 }}:{{ begin_t | slice:2 }}
</ion-label>
</ion-col>
<ion-col size="0.2" style="padding: 0"></ion-col>
</ion-row>
<br/>
<ion-row (click)="end()" >
<ion-col size="0.1" style="padding: 0"></ion-col>
<ion-col size="5" class="labels-desc" style="padding: 0">
<b>
End
</b>
</ion-col>
<ion-col size="0.9" style="padding: 0">
</ion-col>
<ion-col size="5.8" class="to-right" style="font-size: 25px; padding: 0">
<ion-label class="border-bottom" style="padding: 0">
{{ end_t | slice:0:2 }}:{{ end_t | slice:2 }}
</ion-label>
</ion-col>
<ion-row (click)="difference()">
<ion-col size="0.1" style="padding: 0"></ion-col>
<ion-col size="5" class="labels-desc" style="padding: 0">
<b style="padding: 0">
Time difference
</b>
</ion-col>
<ion-col size="0.9" style="padding: 0">
</ion-col>
<ion-col size="5.8" class="to-right" style="padding: 0">
<ion-label class="border-bottom" style="padding: 0">
{{ TimeDiff | slice:0:2 }}:{{ TimeDiff | slice:2 }}
</ion-label>
</ion-col>
difference() (method that gives the difference between the 2 times) -> TimeDiff is the calculation that i want to update everytime I click “OK” in ion-alert. How can I update it everytime I click “OK”?
Ionic 4 can't perform sha256 hashing with key using crypto-js
Hello, I am using crypto-js to perform sha256 hashing on data. The algorithm works fine without key like
CryptoJS.SHA256(message).toString(CryptoJS.enc.Hex)
But when I use a key for hashing it is generating wrong data.
Here is full code
import CryptoJS from 'crypto-js';
let key = 'the shared secret key here';
let message = 'the message to hash here';
console.log(message,key)
let ans = CryptoJS.SHA256(message,key).toString(CryptoJS.enc.Hex)
console.log(ans)
What I am doing wrong?
Thank you in advance
Ion Slides not starting at the top of slide
Did you stick with your workaround or was this solved in another way?
Local Notification : receive a notification when the application is closed
Hi all,
I use the local notification to launch the necessary notifications. it works well when the app is open. I now want to do the same when the application is closed.
For those who wonder, it’s in android that I noticed the problem. The documentation followed is: https://github.com/katzer/cordova-plugin-local-notifications
Do you have an idea for me?
Thank you
Local Notification : receive a notification when the application is closed
cordova-plugin-local-notifications…Local notification only works when app is open , it will won`t work if it is closed…
Events not worked in ionic 6.1.0
import { Events } from ‘ionic-angular’;
add “Events” under provider in app.module.ts
How to trigger a function when the ion-menu-button is closed in ionic
if you want the sidemenu open closed event then you can refer below link
Is inappbrowser's beforeLoad event working for anyone
Have you get it working? I am trying the same.
Events not worked in ionic 6.1.0
as ionic new release feedback, this feature is deprecated, i am not understand the concept of observable, i need to do service like events has key and value and allowed publishing and subscribing
Livereload ERR_CLEARTEXT_NOT_PERMITTED
Where is the config.xml ?
Hemp flower and Health
Treasure Valley Farms is a hemp B2B company located in Colorado Springs, Colorado that’s buyer and sell CBD rich hemp biomass. They also sell CBD hemp clones and seeds. On-site ethanol CBD extraction is also offered.
CBD buds wholesale uk ,buy hemp flowers uk, terpenes uk review, melatonin gummies uk
hemp flower for sale, hemp shop london, hemp buds for sale uk, hemp flowers uk buds
Flowers in Europe, buy hemp flower wholesale in europe, hemp buds wholesalewholesale cbd flower, Hemp Marketplace, hemp extract for sale, hemp tincture 1000mg
stoner survival kit, bubble gum terpenes, how to make wax crumble, buy edibles online uk
how to use terpenes, extract labs crumble, premium hemp flowers, buy hemp flowers
cherry wine hemp flower, how to use terpenes, buy edibles online uk, hemp marketplace
buy hemp flowers, wholesale hemp buds uk, hemp flowers for sale usa,
hemp flowers for sale, whole food hemp complex, hemp buds for sale.
Error plugin facebook build
Hi everyone
I have the following error after installing the facebook plugin in my project when trying to compile with
ionic cordova build android --prod --release
BUILD FAILED in 7s
Exception in thread "ForkJoinPool.commonPool-worker-3" java.lang.IllegalStateException: AAPT Process manager cannot be shut down while daemons are in use
at com.android.builder.internal.aapt.v2.Aapt2DaemonManager.shutdown(Aapt2DaemonManager.kt:96)
at com.android.build.gradle.internal.res.namespaced.RegisteredAaptService.shutdown(Aapt2DaemonManagerService.kt:61)
at com.android.build.gradle.internal.workeractions.WorkerActionServiceRegistry$shutdownAllRegisteredServices$1$1.run(WorkerActionServiceRegistry.kt:96)
at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
[ERROR] An error occurred while running subprocess cordova.
cordova.cmd build android --release exited with exit code 1.
I appreciate any help
One to one video calling in ionic 4
hii are you add twillio video calling ??