@contrasto97 wrote:
(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged)
Posts: 1
Participants: 1
@contrasto97 wrote:
(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged)
Posts: 1
Participants: 1
@theHamster wrote:
Hi,
I’m using an Ionic 3 app, trying to get social sharing working.
I followed the steps to install the Ionic Native Social Sharing plugin from: https://ionicframework.com/docs/v3/native/social-sharing/
Ran:
$ ionic cordova plugin add cordova-plugin-x-socialsharing $ npm install --save @ionic-native/social-sharing@4
Imported the plugin (version 4.x.x) via my app module and added SocialSharing to the providers array.
Imported the plugin via my app.component using:
import { SocialSharing } from '@ionic-native/social-sharing';
Added to the constructor:
private socialSharing: SocialSharing
This share function, also in app.component is triggered via a button in the html (side menu):
async share() { try { // Pop the native social sharing sheet, allowing the user to choose how to share the app. await this.socialSharing.share(this.shareMessage, this.shareSubject, this.shareFile, this.getShareUrl()); this.toast.show('Thanks for sharing!', 3000); } catch(err) { console.error(err); alert(err); } }
I’m using platforms: ios, android and browser.
When I call the method from a build on a real device I get the error:
"Plugin is not installed"
Tried:
- Checking logs for installation errors. None seen.
- Reinstalled plugin.
- Checked plugin present using $ionic cordova plugin list. cordova-plugin-x-socialsharing 5.4.7 “SocialSharing” is present.
- Removed and added all platforms again.
- Wrapped the share method inside a platform.ready().
Nothing seems to be working. I cannot get the app to recognise the plugin is installed!
PLEASE HELP!
What can I try next?
Thanks
Posts: 1
Participants: 1
@zwacky wrote:
Hey all
I was working on the mobile version of an Ionic app and realized that when I used<ion-tabs slot="top">
the tab is appearing above the<ion-header>
. Shouldn’t it be the under the<ion-header>
or am I missing something?I was checking out the starter tabs project, too and got the same result (see screenshot). Does somebody has some insight? Cheers!
Posts: 1
Participants: 1
@leonardofmed wrote:
Context
I’m trying to receive an image file from my external storage as base64, to do this I’m using the function readAsDataURL(), that comes with the Ionic File plugin, which is based in File API. I don’t know what I’m doing wrong, because I can see the base64 string from the log inside the function, but I can’t return this string correctly, instead I’m getting what I suppose to be a Promise object (ZoneAwarePromise)
My Function
... this.uriToBase64(arrayItem2.filePath).then((imageAsBase64) => { console.log("image as base64: ", imageAsBase64); // Receiving the ZoneAwarePromise here }); ... async uriToBase64(uri) { let nameFile = uri.replace(this.file.dataDirectory, ''); await this.file.readAsDataURL(this.file.dataDirectory, nameFile).then((file64) => { let fileWithoutExtension = ('' + file64 + '').replace(/^data:image\/(png|jpg|jpeg);base64,/, ''); console.log("File without extension: ", fileWithoutExtension); // Receiving the base 64 correctly here return fileWithoutExtension; }) .catch(err => { console.log("Error while transforming image to base64: ", err); }); }
Details
I think the way I’m using the function is correct, we can see the same usage here.
I found some related questions, but they don’t helped me much:
Problem with Ionic Capacitor, pretty similar to my problem
Ionic storage problem, returning ZoneAwarePromise too
StackOverflow similar question
Posts: 1
Participants: 1
@Mmadzharov wrote:
Hi guys,
I am trying to run my Ionic application with capacitor but i need the webview url to start with https. For corodova I can configure that in the config.xml with scheme, but I can’t find a solution for capaciotor?
Posts: 1
Participants: 1
@clopio wrote:
J’ai 3 applications ionic3 sur android utilisant le plugin googlemaps qui fonctionnaient très bien. Il y a 2 jours, sans avoir fait aucune modification, sur chacune d’elle, je n’ai plus d’affichage de la carte ! Sur Browser, l’affichage est correct. Que s’est-il passé?
I have 3 ionic3 applications on android using the googlemaps plugin that worked very well. There are 2 days, without any modification, on each of them, I no longer have a map display! On Browser, the display is correct. What happened?
Posts: 1
Participants: 1
@aditbharadwaj wrote:
Iam using Ngx Translation to translate my app from EN to HI (hindi) everything works gr8 but when i close the app and restart it the app is translated back to English. Is their any way i can keep my changed language setting or any way to keep it stored as per the setting chose by the current user logged in?
My current code below:
Settings.html<ion-item> <ion-label>Change Language</ion-label> <ion-select [(ngModel)]="language" (ionChange)="changeLanguage()" name="language" placeholder="Select Language"> <ion-option value="en" selected="true">English</ion-option> <ion-option value="hi">Hindi</ion-option> </ion-select> </ion-item>
settings.ts
changeLanguage() { this.translateService.use(this.language); }
Posts: 1
Participants: 1
@Kelvin150 wrote:
I reopened my old Ionic project and when i tried to build it i got “Cannot read property ‘length’ of undefined” error.
Note: I updated my Android Studio Recently
I have tried uninstalling and installing node and ionic
Error
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=H:\sdk (DEPRECATED)
Cannot read property ‘length’ of undefined
[ERROR] An error occurred while running subprocess cordova.cordova.cmd build android exited with exit code 1.
ionic info :
Ionic: Ionic CLI : 5.2.7 Ionic Framework : ionic-angular 3.9.5 @ionic/app-scripts : 3.2.2 Cordova: Cordova CLI : 9.0.0 (cordova-lib@9.0.1) Cordova Platforms : android 8.0.0 Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic -webview 4.1.1, (and 4 other plugins) Utility: cordova-res : not installed native-run : 0.2.8 System: Android SDK Tools : 25.2.3 (H:\sdk) NodeJS : v10.16.3 (J:\Program Files\nodejs\node.exe) npm : 6.11.2 OS : Windows 8.1
I am getting this error while running ionic cordova build android . It isn’t building. Any help would be appreciated
Posts: 4
Participants: 2
@Jefferk wrote:
I am creating an ios webview using Ionic 4. I have already built the ios platform and I am testing on xcode with the iphone XR-12 simulator. My application calls an iframe to an ip https test with a self-signed certificate. The problem is that ios does not allow me to access this ip because it is self-signed. I’m calling this server with iframe and also use web service that access it from httpclient ionic. I cant access to server.
I have already tried adding the exception using NSAppTransportSecurity
<dict> <key>NSAllowsArbitraryLoads</key> <true/> <key>NSExceptionDomains</key> <dict> <key>MI IP</key> <dict> <key>NSIncludesSubdomains</key> <false/> <key>NSExceptionAllowInsecureHTTPSLoads</key> <false/> <key>NSExceptionRequiresForwardSecrecy</key> <true/> <key>NSExceptionMinimumTLSVersion</key> <string>TLSv1.2</string> <key>NSThirdPartyExceptionAllowInsecureHTTPSLoads</key> <false/> <key>NSThirdPartyExceptionRequiresForwardSecrecy</key> <true/> <key>NSThirdPartyExceptionMinimumTLSVersion</key> <string>TLSv1.2</string> <key>NSRequiresCertificateTransparency</key> <false/> </dict> </dict> </dict>
But in a forum I read that it doesn’t work with ip and that I need a domain like www.example.com
So I tried to modify the host file but I would have to change all redirects and the css and links do not work correctly so I ruled out this possibility of editing the hosts Also try installing the certificates in the simulator. I was dragging the certificate to the simulator and install it and also activate it in certificate trust settings. But it does not work
Already try adding this code in AppDelegate.m
@implementation NSURLRequest(DataController) + (BOOL)allowsAnyHTTPSCertificateForHost:(NSString *)host { return YES; }
Also try adding this code in CDVWKWebViewEngine.m
- (void)webView:(WKWebView *)webView didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge completionHandler:(void (^) (NSURLSessionAuthChallengeDisposition disposition, NSURLCredential *credential))completionHandler { SecTrustRef serverTrust = challenge.protectionSpace.serverTrust; completionHandler(NSURLSessionAuthChallengeUseCredential, [NSURLCredential credentialForTrust:serverTrust]); }
Also add this in config.xml
<preference name="CordovaWebViewEngine" value="CDVUIWebViewEngine"/>
But nothing works
In the logs from simulator ios
Task <837DAB71-F2D7-46C1-A29A-D1AD6736493F>.<2> load failed with error Error Domain=NSURLErrorDomain Code=-1202 “The certificate for this server is invalid. You might be connecting to a server that is pretending to be “IP WEB SITE” which could put your confidential information at risk.” UserInfo={NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _kCFStreamErrorDomainKey=3, NSErrorPeerCertificateChainKey=( “” ), NSErrorClientCertificateStateKey=0, NSErrorFailingURLKey=https://IPWEB:4430/domesticas3p/registro, NSErrorFailingURLStringKey=https://WEBIP/domesticas3p/registro, NSUnderlyingError=0x7fa1a8e15650 {Error Domain=kCFErrorDomainCFNetwork Code=-1202 “(null)” UserInfo={_kCFStreamPropertySSLClientCertificateState=0, kCFStreamPropertySSLPeerTrust=, _kCFNetworkCFStreamSSLErrorOriginalValue=-9843, _kCFStreamErrorDomainKey=3, _kCFStreamErrorCodeKey=-9843, kCFStreamPropertySSLPeerCer
And dont show nothing in the place where is the iframe and the sime proble calling to web service
Sorry my english, and thank you your help
Posts: 1
Participants: 1
@sintraconsulting wrote:
Wrong config debug parameter
await this.deploy.configure({ debug: true, });
I’ trying to configure the Deploy service but i have an error passing debug: true
the source code of the quard is this one, and it checks for disabled flag but then is using the debug flag so i can’t disable it for dev mode (i can only avoid to proceed with the installation of the new version)
Posts: 1
Participants: 1
@vespinasgmailcom wrote:
I have this android app built from an Ionic4 project. This app uses the normal http client to send requests to a local REST server. I deployed the app to my personal test device (a generic 7" Android 8 tablet) and the app works as expected.
I then installed in a Huawei 12" tablet, Android 9, and the app also works as expected. But then I installed the app in the customer’s device, a 8" Galaxy Tab 2 running Android 9, and the app runs but any request sent to the REST server fails with an “Uknown error” status code 0. If I try to acces the REST server from the device’s browser, it works ok. I even downloaded and installed a REST client and it also worked without problems with the REST server… the problem only happens with my app and on this device.
Any ideas of what to check? I discarded permissions problems already ,since my app has all required permissions.
Victor
Posts: 1
Participants: 1
@media4learning wrote:
Hey all. Simple question, I am using Ionic 4. When I run ionic serve it launches in Google Chrome. I want to change this so it launches in Google Chrome Canary. I want to do this in package.json, like I could in Ionic 3 so I don’t have to type --browser etc.
How do I do this in Ionic 4???
I have this:
scripts": {
“ng”: “ng”,
“start”: “ng serve”,
“build”: “ng build”,
“test”: “ng test”,
“lint”: “ng lint”,
“e2e”: “ng e2e”
}
Posts: 1
Participants: 1
@Jyothikrishnu wrote:
Hi, I am getting this email from App-store while publishing my IONIC App. I am building app using
Capacitor and using IONIC 4ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of apps that use UIWebView APIs . See https://developer.apple.com/documentation/uikit/uiwebview for more information.
How can we fix this issue ?
Thanks in advance.
Posts: 1
Participants: 1
@harryvs wrote:
Hello i want to read m3u8 file in ionics. Actually i want to build a offline video app so in my site the video will be use as m3u8 so i want to download this m3u8 video in app just because i want to read the file so is there any possibility to read the m3u8 file.
Posts: 1
Participants: 1
@justin49 wrote:
Hello Team,
I do have an experience with mobile application development using ionic, Xamarin and Angular.
Work Samples:
https://play.google.com/store/apps/details?id=com.pitchero.pitchero&hl=en
And many more……(NDA has been signed that’s why didn’t share those links with you now)
Skype Me: https://join.skype.com/invite/a800V6qAB5dZ
Look forward to hearing from you soon.
Regards,
Justin C
Posts: 1
Participants: 1
@uldcra wrote:
I have a problem, i have create one side menu wifth ion-menu contentId=“content”, it´s doesnt show in IOS devices, but i solve create a new project with ionic sidebar, but i have another project i need create two sidebars because, I need the second sidebar for filter options,
Are there any solution for use this option with ion-menu with , normal ion-menu?
My version Ioninc 5.x
Sorry my english isn´t very poor.
Posts: 1
Participants: 1
@YAsh0011 wrote:
This plugin is working fine for android but when i am building ionic 4 project in xocde it’s showing these errorsld: warning: directory not found for option ‘-L/Users/syedaqdaszaidi/Library/Developer/Xcode/DerivedData/ShiaFM-cmchzodxxqifygckxxojpqogtqnp/Build/Products/Debug-iphonesimulator/FirebaseCore’
ld: warning: directory not found for option ‘-L/Users/syedaqdaszaidi/Library/Developer/Xcode/DerivedData/ShiaFM-cmchzodxxqifygckxxojpqogtqnp/Build/Products/Debug-iphonesimulator/FirebaseInstanceID’
ld: warning: directory not found for option ‘-L/Users/syedaqdaszaidi/Library/Developer/Xcode/DerivedData/ShiaFM-cmchzodxxqifygckxxojpqogtqnp/Build/Products/Debug-iphonesimulator/FirebaseMessaging’
ld: warning: directory not found for option ‘-L/Users/syedaqdaszaidi/Library/Developer/Xcode/DerivedData/ShiaFM-cmchzodxxqifygckxxojpqogtqnp/Build/Products/Debug-iphonesimulator/GoogleUtilities’
ld: warning: directory not found for option ‘-L/Users/syedaqdaszaidi/Library/Developer/Xcode/DerivedData/ShiaFM-cmchzodxxqifygckxxojpqogtqnp/Build/Products/Debug-iphonesimulator/Protobuf’
ld: warning: directory not found for option ‘-L/Users/syedaqdaszaidi/Library/Developer/Xcode/DerivedData/ShiaFM-cmchzodxxqifygckxxojpqogtqnp/Build/Products/Debug-iphonesimulator/nanopb’
ld: library not found for -lFirebaseCore
clang: error: linker command failed with exit code 1 (use -v to see invocation)What I have already done
downgrade Cordova form 9 to 8 version - not working
install pod and update in platform/ios - not working
open workspace file instead of xcodeproj - not working (showing another error)
FCM plugin is working fine for ios but in android, it’s making version conflict with firebase dynamic link, that’s why I used cordova-plugin-firebase-messaging this pluginI have been searching since last 3 days, please help
Posts: 1
Participants: 1
@lqrz wrote:
I’m trying to use Angularfire2 on an Ionic3 app.
When installing it
npm install angularfire2
, I get a deprecation warning:
npm WARN deprecated angularfire2@5.2.1: AngularFire has moved, we're now @angular/fire
.But if trying to install the new @angular/fire
npm install @angular/fire
I see that every version requires an @angular/core >= 6.0.0 -which is greater than the Ionic3 supported on (i.e. “5.2.11”).So, my question is how can I make use of a non-deprecated angularfire2 lib on Ionic3?
(You can also find this question on SO: https://stackoverflow.com/questions/57739589/angularfire2-ionic3?noredirect=1#comment101918279_57739589 )
Posts: 1
Participants: 1
@leonardofmed wrote:
I have the following algorithm:
// Main Function // Get some local data // Convert to some format I need to edit // Loop through user's local images // Edit the converted data to add the image's names to it // Convert IMAGE to base64 and add result into zip file that.uriToBase64(imageFilePath).then((result) => { console.log("image as base64: ", result); zip.file(arrayItem2.name, result, {base64: true}); }); // Convert data again to save it // Add data to zip file // Generate zip file and save it in user's local storage //uriToBase64() function
My problem is:
The step ‘Add data to zip file’ happens before the images are added to zip file. Although the ‘Convert IMAGE to base64’ step has a .then, everything inside happens only after everything is finished. In this case, my zip file is being saved without the images. I tried to make this step work synchronously, using async/await syntax in countless ways, but I couldn’t make it work the way I expected, which is adding the image data inside the zip file within each iteration.
Since the result of
uriToBase64()
function is a Promise, using.then
to get the result data should “pause” the loop until the data is added by thezip.file()
command, then iterate with the next image, right? If not, what is the correct way to wait for it, taking into account the current structure of the algorithm?
Posts: 3
Participants: 2
@wunschradio wrote:
Hi there. I really like Ionic and use the dashboard to compile my apps (esp. for iOS). But why did it get so expensive now? From 29$ to 49$? This is almost double prize.
Posts: 2
Participants: 2