# An error in running the app in iOS

**URL:** https://community.thunkable.com/t/an-error-in-running-the-app-in-ios/1658573
**Category:** Questions about Thunkable X
**Tags:** webapi
**Created:** [December 22, 2021, 7:41am UTC](https://community.thunkable.com/t/an-error-in-running-the-app-in-ios/1658573 "2021-12-22T07:41:39Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![vijay.sehgal4x](https://avatars.discourse-cdn.com/v4/letter/v/839c29/32.png) [@vijay.sehgal4x](https://community.thunkable.com/u/vijay.sehgal4x)
#### Post date: [December 22, 2021, 7:41am UTC](https://community.thunkable.com/t/an-error-in-running-the-app-in-ios/1658573/1 "2021-12-22T07:41:39Z")

</div>

[https://x.thunkable.com/projects/61c2bb8e8317fe001128aa1e/f4158f4a-fb65-4505-b5d2-5260bfd0a6aa/designer](https://x.thunkable.com/projects/61c2bb8e8317fe001128aa1e/f4158f4a-fb65-4505-b5d2-5260bfd0a6aa/designer)

For the link here I am getting this error while testing on iOS  
Below is the screenshot when I click on satellite this is what I get. What could be the solution?

Steps I did -

- Cleared cache of browser (Chrome latest software)
- Cleared cache of iPhone
- Restarted the devices

- Still not working. Can someone suggest please?  
 ![Image from iOS (1)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/3/9365fcc05989487e7b472afa3ce496e4d64138b8.jpeg)

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [December 22, 2021, 8:26am UTC](https://community.thunkable.com/t/an-error-in-running-the-app-in-ios/1658573/2 "2021-12-22T08:26:06Z")

</div>

The problem is from the `Map` component in the page. You need an API key to make it function.

---

<div class="post-metadata">

### Author: ![vijay.sehgal4x](https://avatars.discourse-cdn.com/v4/letter/v/839c29/32.png) [@vijay.sehgal4x](https://community.thunkable.com/u/vijay.sehgal4x)
#### Post date: [December 22, 2021, 10:31am UTC](https://community.thunkable.com/t/an-error-in-running-the-app-in-ios/1658573/3 "2021-12-22T10:31:42Z")

</div>

API key is already added.

---

<div class="post-metadata">

### Author: ![vijay.sehgal4x](https://avatars.discourse-cdn.com/v4/letter/v/839c29/32.png) [@vijay.sehgal4x](https://community.thunkable.com/u/vijay.sehgal4x)
#### Post date: [December 22, 2021, 10:33am UTC](https://community.thunkable.com/t/an-error-in-running-the-app-in-ios/1658573/4 "2021-12-22T10:33:21Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/9/1900560f51a30c263f171c078003289eb8606e63.png)  
Please check

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [December 22, 2021, 10:37am UTC](https://community.thunkable.com/t/an-error-in-running-the-app-in-ios/1658573/5 "2021-12-22T10:37:43Z")

</div>

> [@vijay.sehgal4x](#):
>
> API key

I meant the key for **Google Map**. See this

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/0/2009455429b63be338dae2a4ffe8c267940c81f8.png)

**[Edit]**  
The above is not the only problem with your app but is the source of the crash.

You have other issues such as you are using two different type of variable assignment that do not relate to each other.  
This  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/6/a616ebee803ce5db71bcae7727439ed3ca424301.png)  
does not equal to this  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/0/f091b368a40ac9c429b6148314f2a2edb561766b.png)

The third issue is that the `Latitude and Longitude` of the `Map` component expects a number not a text.

---

<div class="post-metadata">

### Author: ![vijay.sehgal4x](https://avatars.discourse-cdn.com/v4/letter/v/839c29/32.png) [@vijay.sehgal4x](https://community.thunkable.com/u/vijay.sehgal4x)
#### Post date: [December 22, 2021, 10:50am UTC](https://community.thunkable.com/t/an-error-in-running-the-app-in-ios/1658573/6 "2021-12-22T10:50:30Z")

</div>

It was working on Android. Default Google map is used without keys. Not working on iOS. Main location is being fetched from this API shown in the image.

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [December 22, 2021, 10:54am UTC](https://community.thunkable.com/t/an-error-in-running-the-app-in-ios/1658573/7 "2021-12-22T10:54:37Z")

</div>

> [@vijay.sehgal4x](#):
>
> was working on Android

It shouldn’t work in Android as well as iOS.

---

<div class="post-metadata">

### Author: ![vijay.sehgal4x](https://avatars.discourse-cdn.com/v4/letter/v/839c29/32.png) [@vijay.sehgal4x](https://community.thunkable.com/u/vijay.sehgal4x)
#### Post date: [December 22, 2021, 12:50pm UTC](https://community.thunkable.com/t/an-error-in-running-the-app-in-ios/1658573/8 "2021-12-22T12:50:41Z")

</div>

Let me check

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [March 22, 2022, 12:50pm UTC](https://community.thunkable.com/t/an-error-in-running-the-app-in-ios/1658573/9 "2022-03-22T12:50:43Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
