# InterApp.onReceivedUri not working!

**URL:** <https://forums.fusetools.com/t/interapp-onreceiveduri-not-working/4364>\
**Category:** Bug Reports\
**Created:** [April 24, 2016, 10:17pm UTC](https://forums.fusetools.com/t/interapp-onreceiveduri-not-working/4364 "2016-04-24T22:17:11Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fayez\_Q](https://avatars.discourse-cdn.com/v4/letter/f/ee59a6/32.png) [@Fayez\_Q](https://forums.fusetools.com/u/Fayez_Q)\
**Post date:** [April 24, 2016, 10:17pm UTC](https://forums.fusetools.com/t/interapp-onreceiveduri-not-working/4364/1 "2016-04-24T22:17:11Z")

</div>

InterApp doesn’t log the uri & onReceivedUri not triggering!

```auto
var InterApp = require('FuseJS/InterApp');
InterApp.onReceivedUri = function(uri){
    console.log(uri);
}

```

```auto
"Mobile": {
  "KeepAlive": true,
  "ShowStatusbar": true,
  "RunsInBackground": true,
  "Orientations": "Portrait",
  "UriScheme":"apcnappnew"
},
 "Packages": [
        "Fuse.Animations",
        "Fuse.BasicTheme",
        "Fuse.Themes",
        "Fuse.Controls",
        "Fuse.Designer",
        "Fuse.Drawing",
        "Fuse.Drawing.Primitives",
        "Fuse.Effects",
        "Fuse.Elements",
        "Fuse.Entities",
        "Fuse.Gestures",
        "Fuse.Navigation",
        "Fuse.Scripting",
        "Fuse.Shapes",
        "Fuse.Triggers",
        "Fuse.Reactive",
        "Fuse.Android",
        "Fuse.Desktop",
        "Fuse.iOS",
        "Fuse.UserEvents",
        "FuseCore",
        "Uno.Collections",
        "Uno.Geometry",
        "Fuse.Launcher",
        "ObjC",
        "Android",
        "Experimental.iOS",
        "Fuse.PushNotifications"
  ],

```

Is there anything missing? Thanks Fayez

---

<div class="post-metadata">

**Author:** ![Remi\_Pedersen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/remi_pedersen/32/432_2.png) [@Remi\_Pedersen](https://forums.fusetools.com/u/Remi_Pedersen)\
**Post date:** [April 25, 2016, 12:30pm UTC](https://forums.fusetools.com/t/interapp-onreceiveduri-not-working/4364/2 "2016-04-25T12:30:22Z")

</div>

What platform are you testing on (device and OS), and which version of Fuse are you using?

---

<div class="post-metadata">

**Author:** ![Fayez\_Q](https://avatars.discourse-cdn.com/v4/letter/f/ee59a6/32.png) [@Fayez\_Q](https://forums.fusetools.com/u/Fayez_Q)\
**Post date:** [April 25, 2016, 2:31pm UTC](https://forums.fusetools.com/t/interapp-onreceiveduri-not-working/4364/3 "2016-04-25T14:31:40Z")

</div>

Hi Remi,

My device is android 5.1.1 my OS is OSX 10.11.3 and fuse version is 0.12.2(build 6312)

And I tested it on iphone 6s and didn’t work

Thanks

---

<div class="post-metadata">

**Author:** ![Remi\_Pedersen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/remi_pedersen/32/432_2.png) [@Remi\_Pedersen](https://forums.fusetools.com/u/Remi_Pedersen)\
**Post date:** [April 25, 2016, 2:36pm UTC](https://forums.fusetools.com/t/interapp-onreceiveduri-not-working/4364/4 "2016-04-25T14:36:06Z")

</div>

Does it fail on both the Android device and the iPhone? Or just on one of them?

How do you test it? From what kind of other app are you trying to open the URI?

I just tested on Android (using a different Fuse-app to trigger the first one, through `InterApp.launchUri ('apcnappnew://some/uri');`) and everything worked as expected there

---

<div class="post-metadata">

**Author:** ![Fayez\_Q](https://avatars.discourse-cdn.com/v4/letter/f/ee59a6/32.png) [@Fayez\_Q](https://forums.fusetools.com/u/Fayez_Q)\
**Post date:** [April 25, 2016, 2:40pm UTC](https://forums.fusetools.com/t/interapp-onreceiveduri-not-working/4364/5 "2016-04-25T14:40:45Z")

</div>

Hi I tested it using the following, and it failed on both!

I think the problem with onReceivedUri somehow!

```auto
InterApp.onReceivedUri = function(uri){
    console.log(uri);
    loggedIn.value = true;
    showLogin.value = false;
    bootUp.value=false;
}

```

---

<div class="post-metadata">

**Author:** ![Remi\_Pedersen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/remi_pedersen/32/432_2.png) [@Remi\_Pedersen](https://forums.fusetools.com/u/Remi_Pedersen)\
**Post date:** [April 25, 2016, 2:43pm UTC](https://forums.fusetools.com/t/interapp-onreceiveduri-not-working/4364/6 "2016-04-25T14:43:17Z")

</div>

But from where did you try to _start_ it? Did you try to get some other app to open a URI starting with `apcnappnew://`?

---

<div class="post-metadata">

**Author:** ![Fayez\_Q](https://avatars.discourse-cdn.com/v4/letter/f/ee59a6/32.png) [@Fayez\_Q](https://forums.fusetools.com/u/Fayez_Q)\
**Post date:** [April 25, 2016, 2:45pm UTC](https://forums.fusetools.com/t/interapp-onreceiveduri-not-working/4364/7 "2016-04-25T14:45:54Z")

</div>

yes i tried it on browser and passed apcnappnew://token and it opened the app but the token not passed.

---

<div class="post-metadata">

**Author:** ![Remi\_Pedersen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/remi_pedersen/32/432_2.png) [@Remi\_Pedersen](https://forums.fusetools.com/u/Remi_Pedersen)\
**Post date:** [April 25, 2016, 3:12pm UTC](https://forums.fusetools.com/t/interapp-onreceiveduri-not-working/4364/8 "2016-04-25T15:12:55Z")

</div>

Thanks, I’ve managed to reproduce the issue now. Raising a ticket for it, we’ll let you know as soon as there’s any progress.

---

<div class="post-metadata">

**Author:** ![Fayez\_Q](https://avatars.discourse-cdn.com/v4/letter/f/ee59a6/32.png) [@Fayez\_Q](https://forums.fusetools.com/u/Fayez_Q)\
**Post date:** [April 25, 2016, 3:15pm UTC](https://forums.fusetools.com/t/interapp-onreceiveduri-not-working/4364/9 "2016-04-25T15:15:43Z")

</div>

Thanks, I appreciate if you can consider this as urgent one becuase the client is waiting his app and I stucked at this point.

---

<div class="post-metadata">

**Author:** ![Fayez\_Q](https://avatars.discourse-cdn.com/v4/letter/f/ee59a6/32.png) [@Fayez\_Q](https://forums.fusetools.com/u/Fayez_Q)\
**Post date:** [April 25, 2016, 3:24pm UTC](https://forums.fusetools.com/t/interapp-onreceiveduri-not-working/4364/10 "2016-04-25T15:24:00Z")

</div>

Another note is that, the old version “0.11.1” wasn’t raising me the bug, if you could send me the older version, it will be fast solution for me.

---

<div class="post-metadata">

**Author:** ![Remi\_Pedersen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/remi_pedersen/32/432_2.png) [@Remi\_Pedersen](https://forums.fusetools.com/u/Remi_Pedersen)\
**Post date:** [April 26, 2016, 6:48am UTC](https://forums.fusetools.com/t/interapp-onreceiveduri-not-working/4364/11 "2016-04-26T06:48:20Z")

</div>

We’ll take a closer look at it asap. In the meantime here’s 0.11.1 for [windows](https://api.fusetools.com/fuse-release-management/releases/0.11.1.6272/win) and [osx](https://api.fusetools.com/fuse-release-management/releases/0.11.1.6272/osx)

---

<div class="post-metadata">

**Author:** ![Fayez\_Q](https://avatars.discourse-cdn.com/v4/letter/f/ee59a6/32.png) [@Fayez\_Q](https://forums.fusetools.com/u/Fayez_Q)\
**Post date:** [April 26, 2016, 8:32pm UTC](https://forums.fusetools.com/t/interapp-onreceiveduri-not-working/4364/12 "2016-04-26T20:32:46Z")

</div>

Thanks Remi

---

<div class="post-metadata">

**Author:** ![Remi\_Pedersen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/remi_pedersen/32/432_2.png) [@Remi\_Pedersen](https://forums.fusetools.com/u/Remi_Pedersen)\
**Post date:** [April 27, 2016, 8:38am UTC](https://forums.fusetools.com/t/interapp-onreceiveduri-not-working/4364/13 "2016-04-27T08:38:01Z")

</div>

And we have now found and fixed the issue internally. We’ll get the fix out in a release fairly soon.

---

<div class="post-metadata">

**Author:** ![Fayez\_Q](https://avatars.discourse-cdn.com/v4/letter/f/ee59a6/32.png) [@Fayez\_Q](https://forums.fusetools.com/u/Fayez_Q)\
**Post date:** [April 27, 2016, 8:54am UTC](https://forums.fusetools.com/t/interapp-onreceiveduri-not-working/4364/14 "2016-04-27T08:54:26Z")

</div>

Thanks, that’s great

---

<div class="post-metadata">

**Author:** ![Anders\_Schau\_Knatten](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/anders_schau_knatten/32/41_2.png) [@Anders\_Schau\_Knatten](https://forums.fusetools.com/u/Anders_Schau_Knatten)\
**Post date:** [April 28, 2016, 6:05pm UTC](https://forums.fusetools.com/t/interapp-onreceiveduri-not-working/4364/15 "2016-04-28T18:05:02Z")

</div>

A fix for this issue is included in Fuse 0.12.3, which is now available on the QA channel. It is scheduled for official release tomorrow.

[https://www.fusetools.com/downloads/channel/qa](https://www.fusetools.com/downloads/channel/qa)

---

<div class="post-metadata">

**Author:** ![Fayez\_Q](https://avatars.discourse-cdn.com/v4/letter/f/ee59a6/32.png) [@Fayez\_Q](https://forums.fusetools.com/u/Fayez_Q)\
**Post date:** [April 28, 2016, 6:19pm UTC](https://forums.fusetools.com/t/interapp-onreceiveduri-not-working/4364/16 "2016-04-28T18:19:21Z")

</div>

Thanks All, I’ve another interesting bug:

I writed uno code and included the following packages:

```auto
[ForeignInclude(Language.ObjC, "AddressBook/AddressBook.h","AddressBook/ABPerson.h","AddressBook/ABMultiValue.h")]

```

When I run xcode I’ve to add its dependencies manually on “link with binary with libraries” section!

 ![Image of bug](http://i.imgur.com/bxYEvVN.png?1)

I think it should be automaticlly included.

---

<div class="post-metadata">

**Author:** ![Olle\_Fredriksson](https://avatars.discourse-cdn.com/v4/letter/o/e95f7d/32.png) [@Olle\_Fredriksson](https://forums.fusetools.com/u/Olle_Fredriksson)\
**Post date:** [April 29, 2016, 7:37am UTC](https://forums.fusetools.com/t/interapp-onreceiveduri-not-working/4364/17 "2016-04-29T07:37:33Z")

</div>

Hey!

There is no general way for Uno to figure out what frameworks are needed just from a set of header includes, so you have to use e.g. the attribute `[Require("Xcode.Framework", "AddressBook.framework")]` to get that working.

(If your frameworks are not from the iPhone SDK you can use `[Require("Xcode.Framework", "@('relative/path/to.framework':Path)")]` (or `Xcode.EmbeddedFramework` for embedding the framework) and `[Require("Xcode.FrameworkDirectory", "@('relative/path/':Path)")]`.)

Hope that helps!

---

<div class="post-metadata">

**Author:** ![Fayez\_Q](https://avatars.discourse-cdn.com/v4/letter/f/ee59a6/32.png) [@Fayez\_Q](https://forums.fusetools.com/u/Fayez_Q)\
**Post date:** [April 29, 2016, 10:42am UTC](https://forums.fusetools.com/t/interapp-onreceiveduri-not-working/4364/18 "2016-04-29T10:42:49Z")

</div>

Thanks, it works

---

<div class="post-metadata">

**Author:** ![flisterfive](https://avatars.discourse-cdn.com/v4/letter/f/b2d939/32.png) [@flisterfive](https://forums.fusetools.com/u/flisterfive)\
**Post date:** [March 3, 2021, 4:15pm UTC](https://forums.fusetools.com/t/interapp-onreceiveduri-not-working/4364/19 "2021-03-03T16:15:03Z")

</div>

yeah it worked for me
