I am trying to use an ion-select on a page (for the size field on this page). The button background for the ion-select ends up displaying a black button background at the top of the page (under the Item Details) which partially covers the field at the top of the page. I am not sure what CSS attribute this is to make is transparent or white. The same thing happens when I added an ion-select to other pages.
Hello,
I have an app developed for internal use of my company, that can be access by username/password. The accounts are not created in the app but in separate web module.
Does anyone know if I can upload it on Google Play Store / App Store ?
Thanks.
Hello everybody. I am working on Notification Push with Firebase FCM. But I do it on Android is OK. On the IOS, I can not add the phonegap-plugin-push or cordova-plugin-fcm. I add on Android then OK on the IOS is error. Who knows why. Please help me. Thank you very much.
Recently I’ve updated my ionic configuration to ionic@latest and got ‘peerinvalid’ errors for angular package. Please tell me how to satisfy the required dependencies:
$ ionic cordova platform add android
> cordova platform add android --save
✖ Running command - failed!
[ERROR] Exception: Using cordova-fetch for cordova-android@^6.3.0
Error: Failed to fetch platform cordova-android@^6.3.0
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Error: npm: Command failed with exit code 1 Error output:
npm ERR! Linux 3.16.0-4-amd64
npm ERR! argv "/home/artem/.nvm/versions/node/v6.11.4/bin/node"
"/home/artem/disk2/Projects/AcroLink/Client/Mobile/node_modules/.bin/npm" "install" "cordova-android@^6.3.0"
"--production" "--save-exact"
npm ERR! node v6.11.4
npm ERR! npm v2.15.12
npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package @angular/common@4.4.6 does not satisfy its siblings' peerDependencies
requirements!
npm ERR! peerinvalid Peer @angular/forms@4.4.6 wants @angular/common@4.4.6
npm ERR! peerinvalid Peer @angular/platform-browser@4.4.6 wants @angular/common@4.4.6
npm ERR! peerinvalid Peer @angular/platform-browser-dynamic@4.4.6 wants @angular/common@4.4.6
npm ERR! peerinvalid Peer ionic-angular@3.0.1 wants @angular/common@4.0.0
npm ERR! Please include the following file with any support request:
npm ERR! /home/artem/disk2/Projects/AcroLink/Client/Mobile/npm-debug.log
I was searching the entire Forum and google and I didn’t found a solution for this problem.
We have an Ionic 2 (now 3) App that integrate our software (communication solution) with Android and IOS. I’m grateful that Ionic help me with, for sure. My app is pretty much load webservices (REST) from our main platform and loading into the app.
In this specific part I have a json content load that can include some html features inside it . Like emoctions (that’s ok) and links that user put in when it’s posting. This links is basically http://www.mydomain.com/profile/userid , like facebook feature (mark friends).
When my app is running the app tried to open in Browser this links, but I want to intercept them and open with NavController to push my profile page inside App.
So I need to look inside a json variable (innerHTML) to find this links and split them to get the Id and open inside my App, replace this external clicks.
What I tried:
I tried to treat with replace before show the inner html
Anyway. I’m not the person who asks for help without search all the situation and tried a lot to find solutions, but nothing seems to help me. Anyone has any idea how to solve problems like this?
We tried to integrate sentry.io in our ionic3 app, anything is working fine expecting on production releases, the error logged to sentry is the production code and not mapped with our upploaded sourcemap.
We created our production build for android in this way: ionic cordova build android --prod --release
Using app-scripts 3.0.0 the sourcemap should be under the new .sourcemaps folder, so we upload the files for release in this way: sentry-cli releases -o blabla -p blabla files 0.0.10 upload-sourcemaps --url-prefix / .sourcemaps
We configure Raven like this:
Raven
.config(
'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
{
release: '0.0.10',
dataCallback: data => {
if (data.culprit) {
data.culprit = data.culprit.substring(data.culprit.lastIndexOf('/'));
}
var stacktrace = data.stacktrace ||
data.exception &&
data.exception.values[0].stacktrace;
if (stacktrace) {
stacktrace.frames.forEach(function (frame) {
frame.filename = frame.filename.substring(frame.filename.lastIndexOf('/'));
});
}
}
}
)
.install();
But at the end we are always running on error notification without sourcemap, like this:
Today I added few more features to my PWA and created a production build. But when I tried to test it on the production environment, my service worker file was not updated. Hence it refers my old versions of - index.html, main.js, main.css and polyfill.js files. It was weird completely
Hi, I’m running into an issue that I can’t seem to solve by simply google-ing around.
I am running ionic and everytime I try to run an ios emulate after I have installed the app to my phone to test I get the following error.
/usr/local/bin/ionic cordova run --confirm --no-interactive --emulator ios -lc
[WARN] Multiple network interfaces detected!
You will be prompted to select an external-facing IP for the livereload server that your device or emulator has access to.
You may also use the --address option to skip this prompt.
[INFO] Starting app-scripts server: --address 0.0.0.0 --port 8100 --livereload-port 35729 --dev-logger-port 53703 --consolelogs --nobrowser --iscordovaserve --platform ios --target cordova - Ctrl+C to cancel
[09:36:33] watch started ...
[09:36:33] build dev started ...
[09:36:33] clean started ...
[09:36:33] clean finished in 2 ms
[09:36:33] copy started ...
[09:36:34] deeplinks started ...
[09:36:34] deeplinks finished in 22 ms
[09:36:34] transpile started ...
[09:36:36] transpile finished in 2.62 s
[09:36:36] preprocess started ...
[09:36:36] copy finished in 2.77 s
[09:36:36] preprocess finished in 67 ms
[09:36:36] webpack started ...
[09:36:42] webpack finished in 6.24 s
[09:36:42] sass started ...
[09:36:43] sass finished in 848 ms
[09:36:43] postprocess started ...
[09:36:43] postprocess finished in 5 ms
[09:36:43] lint started ...
[09:36:43] build dev finished in 9.93 s
[09:36:43] watch ready in 9.96 s
[09:36:43] dev server running: http://localhost:8100/
[INFO] Development server running!
Local: http://localhost:8100
External: http://192.168.3.200:8100, <REDACTED>
> cordova run ios --emulator
Error: Cannot read property 'indexOf' of null
[ERROR] An error occurred while running cordova run ios --emulator (exit code 1).
Here’s my ionic info. This is on an ionic blank project.
Hello, I have an app with a side menu and a user login. Each user has a role and each role has it’s own associated menus. The menus are loaded trough a REST API.
So far I’ve made it work somewhat by having checks in the app.component constructor and depending on the role it loads different menus, but this has the drawback of not updating after a user logs out and a user with a different role logs in - it keeps the loaded menus from the previous user.
This is the code in my app.component constructor. loadMenus sets menus variable with the returned menus depending on role. I was thinking that I need to just set menus = [], but I don’t know where to do it.
Hi, I want to achieve a feature like WhatsApp video calling in my app. Even when the app is closed it should get a trigger from the server and open the app. Can anyone let me know how can I achieve this Ionic?
But i have some problems to read some characteristics. Here is my reading function :
onReadCharacteristic(deviceID, service, characteristic){
this.ble.read(deviceID,service,characteristic).then(
function(buffer){
var databuffer = new Uint8Array(buffer);
alert("buffer " + String.fromCharCode.apply(null,databuffer));
}
)}
It works well when i tryc to read the Device Information service 0x180A, the buffer return me the good informations (device name, manufacturer name, device number etc…).
But when i try to read the Battery Service 0x180F (characteristic 0x2A19) for example, the buffer return me a strange thing like “[” :
ionic cordova platform add android
> cordova platform add android --save
√ Running command - done!
> ionic cordova resources android --force
√ Collecting resource configuration and source images - done!
√ Filtering out image resources that do not need regeneration - done!
× Uploading source images to prepare for transformations - failed!
TypeError: unsupported proxy protocol: "xxx.xx.xx.xxx"
at new ProxyAgent (C:\Users\estagiario2\AppData\Roaming\npm\node_modules\@ionic\cli-plugin-proxy\node_modules\proxy-agent\index.js:109:11)
at ProxyAgent (C:\Users\estagiario2\AppData\Roaming\npm\node_modules\@ionic\cli-plugin-proxy\node_modules\proxy-agent\index.js:81:45)
at Request.proxy (C:\Users\estagiario2\AppData\Roaming\npm\node_modules\@ionic\cli-plugin-proxy\node_modules\superagent-proxy\index.js:71:15)
at Object.<anonymous> (C:\Users\estagiario2\AppData\Roaming\npm\node_modules\ionic\node_modules\@ionic\cli-utils\lib\http.js:31:17)
at next (native)
at fulfilled (C:\Users\estagiario2\AppData\Roaming\npm\node_modules\ionic\node_modules\tslib\tslib.js:100:62)
at process._tickCallback (internal/process/next_tick.js:109:7)
when i build my app without the flag --prod or when i test with ionic serve in the browser, the css images are displayed correctly, but when i build for production the images are not displayed. There’s my css: