Quantcast
Channel: Ionic Forum - Latest topics
Viewing all 70952 articles
Browse latest View live

IOS Build generates a .zip that does not contain the .app folder

$
0
0

I don’t understand anything about native IOS Builds, that’s why we signed AppFlow to delegate this task.

The build IOS and Android run very well without errors, the files are generated normally. The Android file works great for installing on test devices, but the file generated for IOS (app-name.app.dSYM.zip) is not compatible with Ad-hoc installations.

I did the build correctly:

  • Publication certificate (app store / ad-hoc)
  • Ad-hoc provisioning (with the devices indicated with their respective UDID)
  • Signin Certificate based on the files above.

When trying to install via ad-hoc by generating the DIAWI link (https://www.diawi.com) I get the error “Invalid .zip file: missing a .app folder” inside .dSYM.zip

I get the same error when trying to use the service https://appetize.io

If I generate a version of the build for the app store (with certificates and distribution provisioning, this generated .dSYM.zip does not cause any error when sending to the Store.

Can anyone help me with this issue? I need some testers to receive the app for testing but I don’t have physical access to the devices to install via XCODE on any Mac.

1 post - 1 participant

Read full topic


For loop only returns second item(and sometimes only the first one)

$
0
0

Hello,
So the problem that I faced is every time I do a for loop on a JSON when I console.log the result
he gives me all the items but when I call it on the Html it only gets the second item.
Here is my code :

    this.Api.fetchUserProfileWithFriends(id).subscribe(data =>{  

      this.friends =data;

      console.log('Friends: ',data); 

/*

      for( this.x = 0; this.x < this.friends.length; this.x++) {

        

        this.friendId  = this.friends[this.x].friend.id;

        

        console.log("IDs"+this.friendId);

    }

    */

    for(const data of this.friends) {

      console.log("IDS",data.friend.id);// element is JSON 

      this.friendId=data.friend.id

    }

      console.log('FriendsID: ',data);

    });

my HTML:
{{friendId}}

I’m getting the same ID I don’t know why he is not looping when I pass it on my HTML.

Thank you.

1 post - 1 participant

Read full topic

With Local Notifications, can I set the badge icon on iOS and Android?

$
0
0

With Push Notifications, I can set the badge icon on iOS and Android.

However, I want to do the same with local notifications.

For example, I made a “Todos” app and I want to show the number of due items on the todo list in the badge on the app icon on iOS. How could I do that with local notifications?

1 post - 1 participant

Read full topic

How to get single user who has logged in

$
0
0

Hii, I am trying to get single user who has logged in using react ionic with redux…but unable to do so.
passing id but not working. so please tell me. how to get the single user who has logged in.
Please tell me the steps.
I am giving some images.
I don’t want to display all the users. Plan is to send the user to the register page to update it’s details if it is not updated. If it is updated then to send the user to the dashboard and to show its account details.
which can only be done with id according to me…or there is some other way to do it.

1 post - 1 participant

Read full topic

Check Which Photo App Is Installed on Android Device

$
0
0

For the Camera API, is there a way to check what native Android photo app (eg, Google Photos, Samsung Gallery, etc.) is opened via CameraSource.Photos?

We’re looking to show slightly different UI on our photo screen, based on whether the device is using Google Photos versus another API.

1 post - 1 participant

Read full topic

Custom modal in ionic-vue doesn't wok with z-index for ion-toolbar

$
0
0

Hello,

I have a nuxt ionic app where I created a custom modal (because the alert is not enough for display a form in a modal) in a vue component that I use in a nuxt page.
The app looks like this:
image
The css properties for the overlay div and the modal inside the div are:

.overlay {
  display: block;
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

.modal {
  background-color: #fefefe;
  margin-top: 300px; /* Location of the box */
  margin-left: auto;
  margin-right: auto;
  border: 1px solid #888;
  width: 70%;
}

And for those elements that are seen are the ion-toolbar from inside the ion-card
That have the z-index: 10
image

  • How can I modify the z-index for toolbar (when the model is opened) ?

  • Or is there any other way to approach this custom modal implementation?

Thank you

1 post - 1 participant

Read full topic

Default email address

$
0
0

Hello Guys,

I am working on PWA app…is there any way to get the default e-mai address of the device?

If you have it and the user is registered the same email address, then in this case no extra need to send out the confirmation email about the registration.

What do you think?

ThanksCsaba

1 post - 1 participant

Read full topic

Ionic market


Angular send data between modules

$
0
0

My application has some pages that need to share data between the components, and it is working, but during the test with a customer today I caught an unexpected situation. The user placed a “/” in a field, resulting in a failure.

image

Is there another way to sent data between the components to avoid this issue?

3 posts - 3 participants

Read full topic

What happens to ionic vue app when user clicks home button

$
0
0

I implemented logic where if some other application makes specific change an event is fired from Laravel backend to my ionic application and notification to user is being shown, but only if user is listening for that specific event (this is through Pusher and Laravel Echo).
My question is if for example user uses iPhone and then listens for that specific event but then he clicks home button which will hide the app, will that terminate application or will it refresh it, what will happen? Because when app is refreshed new instance of Laravel Echo is created which is no good because if user was listening to the event and now new instance is created he will not be subscribed to taht event.

I know i did not explain my question very well probably but thats best i can do.
The question is what happens when user runs ionic vue app on mobile and then click home button which hides application?

Thanks!

1 post - 1 participant

Read full topic

Requests aborted due to Untrusted chain when running build on Android device

$
0
0

I’m several days stuck on this SSL error, and I cannot seem to get it working.

I’m implementing an Ionic app with Capacitor. Connections to the server are done with Axios. So, everything was fine when I tried it for development with

ionic serve

running it from a browser. Smooth and perfect.

But then, after building it for production and running it on a device with Android Studio, all the requests to the server are aborted.

I figured out it was due to an SSL error, since this was the error displayed on the terminal:

E/chromium: [ERROR:ssl_client_socket_impl.cc(962)] handshake failed; returned -1, SSL error code 1, net_error -202

But I didn’t know why. So after more research I found out the reason of this was because of an untrusted chain. Now I sort of understand what’s a certificate chain, but I still don’t know how to fix it.

The server the device is trying to connect is ours, in case some action must be done there. I’m aware there’s some hack in the Android Java files where the SSL validation is done. But as far as I know this is not desirable, and I only found this hack for Cordova, not for Capacitor.

In case this might help you helping me, this is the output of a useful command I found during my research, which lists the certificate chain. Since I’m not sure whether some data in this output must remain private, I’ve hidden some info, and replaced our server domain with a fake one:

> openssl s_client -connect ourserver.domain.net:443
CONNECTED(00000184)
depth=0 CN = ourserver.domain.net
verify error:num=20:unable to get local issuer certificate
verify return:1
depth=0 CN = ourserver.domain.net
verify error:num=21:unable to verify the first certificate
verify return:1
---
Certificate chain
 0 s:CN = ourserver.domain.net
   i:C = US, O = **Let's Encrypt**, CN = R3
---
Server certificate
-----BEGIN CERTIFICATE-----
Long list of characters...........................
..................................................
..................................................
............ REPLACED WITH DOTS ..................
..................................................
..................................................
..................................................
-----END CERTIFICATE-----
subject=CN = ourserver.domain.net

issuer=C = US, O = Let's Encrypt, CN = R3

---
No client certificate CA names sent
Peer signing digest: SHA256
Peer signature type: RSA
Server Temp Key: ECDH, P-256, 256 bits
---
SSL handshake has read 2068 bytes and written 456 bytes
Verification error: unable to verify the first certificate
---
New, TLSv1.2, Cipher is ECDHE-RSA-AES256-GCM-SHA384
Server public key is 2048 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
    Protocol  : TLSv1.2
    Cipher    : ECDHE-RSA-AES256-GCM-SHA384
    Session-ID: 570AC93042ABDBBACCA8854C022985DCD8712BC2795CE379A3779C975DB58096
    Session-ID-ctx:
    Master-Key: 19C03ED660DCFE807DF2650A960D656089ADD1C9DA941F18127ED396D9EDBC9DF4CBFDFD3BD03E84B234963151DBE75B
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    TLS session ticket lifetime hint: 300 (seconds)
    TLS session ticket:
    0000 - a5 17 9f 73 46 38 05 b3-f7 d4 d5 ed cb d7 6c 88   ...sF8........l.
    0010 - 79 ee 10 94 41 72 f2 53-88 f6 af 95 e8 dc 4e 5f   y...Ar.S......N_
    0020 - af ef 8f dd 9f dc 52 1f-7d 94 4b 13 e0 b8 bc 06   ......R.}.K.....
    0030 - c0 e3 41 c2 37 3b 12 63-a4 69 e4 10 52 e0 87 fd   ..A.7;.c.i..R...
    0040 - 33 0e 7b 41 ef 65 6f 71-6d be b3 44 5c 85 c2 c4   3.{A.eoqm..D\...
    0050 - 5c e0 34 96 e3 23 f6 dc-01 9a 2b 42 21 88 b2 b7   \.4..#....+B!...
    0060 - 8f e8 8c 6b 4d 42 d6 f9-cb 01 ae 7a 0f 2b 80 48   ...kMB.....z.+.H
    0070 - d8 7f b7 8c ee b3 b6 17-f8 75 bd 47 14 81 79 e8   .........u.G..y.
    0080 - 31 1a 6b 80 d3 78 6b f6-37 9a 2c 63 8f b6 72 db   1.k..xk.7.,c..r.
    0090 - 72 d3 5e 71 69 57 f7 de-82 d1 44 74 fc e0 f4 81   r.^qiW....Dt....
    00a0 - d7 4a 64 28 9c 62 6d 34-52 c0 a7 e5 14 8b b3 63   .Jd(.bm4R......c
    00b0 - 16 1d e9 4c 4e 1f 3d 05-ca 70 3c 4b a9 a9 1d 1d   ...LN.=..p<K....
    00c0 - 18 6e a3 ab a2 84 1c b3-ea 7c b1 e8 da de b4 1f   .n.......|......
    00d0 - 97 72 8c 94 59 80 b9 c6-24 28 7f d5 2b 7f d4 2d   .r..Y...$(..+..-

    Start Time: 1615152283
    Timeout   : 7200 (sec)
    Verify return code: 21 (unable to verify the first certificate)
    Extended master secret: no
---
closed

I’d appreciate any help.

1 post - 1 participant

Read full topic

Push notifications to Ionic Vue app from Laravel backend

$
0
0

I have Laravel backend app that communicates with Ionic Vue app. I also use Pusher to send notifications from Laravel application to client app. All this works fine but i want to implement push notification system. Can client application show push notification when my Laravel app notifies (through Pusher) client app thatsomething has happened?

1 post - 1 participant

Read full topic

Firebase Integrations

$
0
0

Hello -

We currently have an Ionic 3 app that is using an older Firebase plugin for push notifications. It seems like there are many stale (unsupported?) Firebase plugins like this.

I’m wondering what the most effective Firebase push notification plugin option would be at this stage? Is it safe to say that the Capacitor Push Notification option would at least be free and supported by Ionic, making it likely the safest long-term option?

Thanks -

1 post - 1 participant

Read full topic

Push notifications to Ionic Vue app from Laravel

$
0
0

I have Laravel backend app that communicates with Ionic Vue app. I also use Pusher to send notifications from Laravel application to client app. All this works fine but i want to implement push notification system. Can client application show push notification when my Laravel app notifies (through Pusher) client app thatsomething has happened?

If anyone can point me to right direction i would be grateful.

1 post - 1 participant

Read full topic

AJAX calls work on simulator and web, not on phone

$
0
0

I’ve recently upgraded from PhoneGap/Cordova to Capacitor, and cannot decipher why my app works everywhere but my phone.
I’m using jQuery Mobile and an ajax call.
npx cap server → via browser → works like a champ.
Android Studio emulator → works like a champ.
Once I get the app on my phone, it DOES NOT hit my webserver/API at all.
I’ve found references to server → allowNavigation, which I added to my capacitor.config.json file…
Any ideas would be highly and sincerely appreciated.

1 post - 1 participant

Read full topic


Ionic info fails

$
0
0

I’m trying to run ionic info. I’m using windows 10 and vscode.

PS C:\Development\Projects\Ionic\Workout> ionic info
[ERROR] Command failed with exit code 1: powershell (Get-CimInstance -ClassName Win32_OperatingSystem).caption

    'powershell' is not recognized as an internal or external command,
    operable program or batch file.

But if I run the command: ionic docs, the command runs correctly.

Thanks

2 posts - 1 participant

Read full topic

Problem hosting Ionic app on Heroku (Ionic Vue)

$
0
0

Hi, I am trying to host my Ionic app on Heroku and I am having trouble. Here is what I have tried:

  1. I followed Simon Grimms YouTube video “How to Deploy Your Ionic App as Website to Heroku” and I did the following steps:

  2. Made a server.js file at the top level of my Ionic app. Added the following code:

var express  = require('express');
var app      = express();                               
var morgan = require('morgan');            
var bodyParser = require('body-parser');    
var cors = require('cors');
 
app.use(morgan('dev'));                                        
app.use(bodyParser.urlencoded({'extended':'true'}));            
app.use(bodyParser.json());                                     
app.use(cors());
 
app.use(function(req, res, next) {
  res.header("Access-Control-Allow-Origin", "*");
  res.header('Access-Control-Allow-Methods', 'DELETE, PUT');
  res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
  next();
});
 
app.use(express.static('dist'));
const port = process.env.PORT || 5000;
console.log(port);
app.listen(port, () => console.log(`Server started on port ${port}`));

And installed the packages in the project obviously. Here I changed from “www” to “dist” as that is now name of the build folder.
3. Move the contents of devDependencies into dependencies in package.json
4. Made Procfile with the content: web: npm run build && npm start
5. I had already created the Heroku app, initialized repo and had everything set up
6. Standard Heroku procedure of git add ., git commit -m “”, and then git push heroku master

This builds and deploys my app, but when I go to /login (where I start) or any other route it doesn’t know what I am talking about and I get the following error:

2021-03-09T21:04:03.203199+00:00 heroku[router]: at=info method=GET path="/login" host=quiz-app-client.herokuapp.com request_id=53a308e2-72ce-40df-a758-6315af4b5399 fwd=“212.10.104.241” dyno=web.1 connect=1ms service=3ms status=404 bytes=541 protocol=https

And the same behavior happens when I run it with heroku local on the 5000 port.

Here is what my dependencies look like:

“scripts”: {
“serve”: “vue-cli-service serve”,
“build”: “vue-cli-service build”,
“test:unit”: “vue-cli-service test:unit”,
“test:e2e”: “vue-cli-service test:e2e”,
“lint”: “vue-cli-service lint”
},
“dependencies”: {
@capacitor/android”: “^2.4.5”,
@capacitor/core”: “2.4.5”,
@ionic/vue”: “^5.4.0”,
@ionic/vue-router”: “^5.4.0”,
“axios”: “^0.21.1”,
“body-parser”: “^1.19.0”,
“core-js”: “^3.6.5”,
“cors”: “^2.8.5”,
“express”: “^4.17.1”,
“firebase”: “^8.2.2”,
“ionicons”: “^5.4.0”,
“mongoose”: “^5.11.11”,
“morgan”: “^1.10.0”,
“vue”: “^3.0.0-0”,
“vue-router”: “^4.0.0-0”,
“vuex”: “^4.0.0-rc.2”,
@capacitor/cli”: “2.4.5”,
@vue/cli-plugin-babel”: “~4.5.0”,
@vue/cli-plugin-e2e-cypress”: “~4.5.0”,
@vue/cli-plugin-eslint”: “~4.5.0”,
@vue/cli-plugin-router”: “~4.5.0”,
@vue/cli-plugin-unit-jest”: “~4.5.0”,
@vue/cli-service”: “~4.5.0”,
@vue/compiler-sfc”: “^3.0.0-0”,
@vue/test-utils”: “^2.0.0-0”,
“eslint”: “^6.7.2”,
“eslint-plugin-vue”: “^7.0.0-0”,
“vue-jest”: “^5.0.0-0”
},

Everything works perfectly fine if I use ionic serve and use the 8100 port. I don’t know if it has something to do with the router in Vue and setting up routes in the server.js?

I’m hoping you can help figure out what is wrong. Any help or any attempts to help are greatly appreciated. Thank you.

1 post - 1 participant

Read full topic

Oidc Passwordless Authentication

$
0
0

I am trying to decide on either React Native or Ionic w/ React for transitioning my PWA into a native application. I’ve been looking to see if it is possible to use Passwordless Authentication with Ionic and React without using a service like Firebase, but a self hosted Identity Server 4.

Has anyone achieved something similar using Ionic?

Thanks!

1 post - 1 participant

Read full topic

No badges or sounds on iOS for push notifications

$
0
0

Using Capacitor 2.4.6, I have push notifications working on iOS. In my capacitor.config.json file, I have

  "plugins": {
    "PushNotifications": {
      "presentationOptions": ["badge", "sound", "alert"]
    }
  },

I get the push notifications. But no sound is ever played, and no badge is displayed on the app icon. What am I missing?

1 post - 1 participant

Read full topic

Ionic React - IonRange not showing up properly

$
0
0

Hello,

I recently got started with Ionic React and I wanted to experiment with the IonRange component. The following is my IonRange code in JSX (alongside a button and some text):

      <IonApp>
            <IonContent>
                <IonGrid className="align-all-center">
                    <IonRow className="content-padding">
                        <IonButton onClick={updateName}>
                            Press Me!
                        </IonButton>
                    </IonRow>
                    <IonRow className="content-padding">
                        <IonText color="light">
                            Hello {name}!
                        </IonText>
                    </IonRow>
                    <IonRow>
                        <IonRange value={50} pin={true} min={0} max={100}></IonRange>
                    </IonRow>
                </IonGrid>
            </IonContent>
      </IonApp>

However, the result that I get in my browser is this:

image

When ever I try to scrub that dot, one of the values is:

image

Thanks for your help.

1 post - 1 participant

Read full topic

Viewing all 70952 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>