I use the ngCordova local notification plugin in my Ionic app.
The notification appears immediately in the notification center on iOS 9.3.3, but there is no sound - neither if the app is open nor if the device is in standby.
I've tried many things and nearly read all questions on stackoverflow, but it still not work.
Versions
ionic: 1.7.16
cordova: 6.2.0
Here is what i tried in various combinations with Ionic:
ionic platform remove android
ionic platform remove ios
ionic platform add ios
ionic platform add android
ionic hooks add
ionic package build ios
I also checked if my app has permission in settings->notifications on my iOS device.
OK, i found a solution at Github. Now it works.
https://github.com/katzer/cordova-plugin-local-notifications/issues/1031#issuecomment-232391644
Related
I am working on ionic 3 app and i am using one Signal plugin for showing notification. And i have set that if platform is IOS then i show them a page from where user reject to receive notification and accept it.
And when i make the IOS build it will be stuck on the page where user have to select to receive notification or not and in Xcode it shows the error that
Could not signal service com.apple.WebKit.WebContent in ios 11.4.1
And when i search for solution i found something that we have to install two more plugins which are these.
cordova plugin add cordova-plugin-wkwebview-engine
cordova plugin add https://github.com/TheMattRay/cordova-plugin-wkwebviewxhrfix
and this plugin cordova-plugin-wkwebview-engine needs the cordova-ios version 5.1.1
i updated to that but till now am unable to resolve it.
i won’t found any solution from last two to three days.
I'm trying to implement Razorpay checkout in my ionic application using Razorpay-cordova. After installing this plugin, ios application gets stuck on its splash screen and then gets close. Although this plugin works perfectly on Android platforms.
I have done following basic steps:
Added razorpay plugin - cordova plugin add com.razorpay.cordova --save
After this I emulate this basic app just in ios simulator - ionic cordova emulate ios
I have embedded swift libraries in Xcode the razorpay.framework.
Then imported the <razorpay-swift.h> in main.m.
Result: The app gets stuck on the splash screen for few secs and then gets close. (Only on IOS. Also tested on IOS device, results in same!).
I don't know what I'm missing here?
Cordova iOS is giving me a very hard time. I have a Cordova iOS app written in 2016 and I am handling it now.
I believe you are familiar with the following app store issues regarding UIWebView:
ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted.
Instead, use WKWebView for improved security and reliability. Learn more (https://developer.apple.com/documentation/uikit/uiwebview).
Now my application is quite huge; it has Apple Pay feature, biometrics, lots of bridge calls between website and iOS app.
I tried to update Cordova in my app and then uploaded it, but it never worked. So I find out that first the physical structure of my app was wrong, all I had in my source tree is 'src' folder which had everything. So I created "hello world" Cordova iOS project from terminal (command line) and then noticed the difference of folders and files like config.xml hooks, nodeModules etc ..
Now my solution was to create a sample helloworld app and then copy my code into ios folder (platform->iOS-> My 100 files). But it did work. I followed this link: https://github.com/apache/cordova-plugin-wkwebview-engine
And i thought if i follow following lines of code in terminal :
cordova create wkwvtest my.project.id wkwvtest
cd wkwvtest
cordova platform add ios#4
cordova plugin add cordova-plugin-wkwebview-engine
I will create a Cordova app which will have ios 4 version of Cordova and then WKWebView will be integrated in my app and then i will be able to upload this app on app store.
But even this sample application gives me app store error of deprecated UIWebView. Has anyone found the clear cut solution to this problem?
Q1: Have you ever uploaded a sample test app like hello world to the TestFlight which has Cordova ios 4.1+ or even cordova ios 5.1+ version. Because I am assuming in Cordova wkwebview plugin all things related to uiwebview has already been handled or atleast in the latest version it has been handled and we don't need to do anything else apart from installing latest Cordova ios version.
Question 2: What should I do to upload my app on app store it has cordova-ios 4.1.1 right now. I tried many possible ways. Like for eg a) created a sample cordova-ios app with latest Cordova ios 5.1.1 and copied all my source files (almost 100-500) into ios folder, removed all uiwebview instance in my code (almost 50 places), but when I search for 'uiwebview' cordova library still has almost 120 search results.
I'm trying to implement razorpay checkout in my ionic application using Razorpay-cordova. After installing this plugin, ios application gets stuck on its splash screen and then gets close. Although this plugin works perfectly on Android and browser platforms.
I have done following basic steps:
Started a blank app - ionic start myApp sidemenu
Added an ios platform - ionic cordova platform add ios
Than added razorpay plugin - cordova plugin add com.razorpay.cordova --save
After this I emulate this basic app just in ios simulator - ionic cordova emulate ios
Result: The app gets stuck on the splash screen for few secs and then gets close. (Only on IOS. Also tested on IOS device, results in same!).
I don't know what I'm missing here?
Embed swift libraries in Xcode(Which I forgot). Will work!
I have developed an App with Cordova.
On resume event I make an Ajax call. It worked perfectly on Android and iOS but yesterday I recompiled the app, and now resume event doesn't fire on iOS. I didn't change anything. The plugins are the same. The only thing that is changed is iOS version on my test device (iOS 10.3.2). On Android it is still working.
I use Cordova cli 6.5.0 and Cordova ios 4.3.1
Thanks.