# Intent share

**URL:** <https://forum.ionicframework.com/t/intent-share/114948>\
**Category:** Ionic Native\
**Created:** [December 10, 2017, 9:36pm UTC](https://forum.ionicframework.com/t/intent-share/114948 "2017-12-10T21:36:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![NaC](https://avatars.discourse-cdn.com/v4/letter/n/53a042/32.png) [@NaC](https://forum.ionicframework.com/u/NaC)\
**Post date:** [December 10, 2017, 9:36pm UTC](https://forum.ionicframework.com/t/intent-share/114948/1 "2017-12-10T21:36:31Z")

</div>

Hi,

looking for some snippet using webintent (example:sending url from chrome to ionic app)

thank you in advance!

---

<div class="post-metadata">

**Author:** ![sanandiyavipul](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@sanandiyavipul](https://forum.ionicframework.com/u/sanandiyavipul)\
**Post date:** [December 11, 2017, 7:24am UTC](https://forum.ionicframework.com/t/intent-share/114948/2 "2017-12-11T07:24:59Z")

</div>

Please explain proper what you want so we will help you.

---

<div class="post-metadata">

**Author:** ![NaC](https://avatars.discourse-cdn.com/v4/letter/n/53a042/32.png) [@NaC](https://forum.ionicframework.com/u/NaC)\
**Post date:** [December 11, 2017, 8:29am UTC](https://forum.ionicframework.com/t/intent-share/114948/3 "2017-12-11T08:29:53Z")

</div>

thx for your response!

my goal is very simular to:

> <https://stackoverflow.com/questions/43712312/make-ionic-app-appear-in-share-list-and-receive-data>

actually I’m looking for possibilty to write a url value (got them from chrome -\> share -\> myInoincApp) to my provider and than to my inputfield.  
the problem here, is that either my provider or any variable is accessible in function(intent)…

!!! \*\*\* CODE app.component.ts \*\*\*  
this.platform.ready().then(() =\> {  
this.statusBar.styleDefault();  
this.splashScreen.hide();

```
  if(this.platform.is('android')){
    window['plugins'].intentShim.getIntent(
      function(intent)
      {
        var intentExtras = intent.extras["android.intent.extra.TEXT"];     
        !!! ***MY PROVIDER***
        myprovider.setValue(intentExtras);
        !!! 
      },
      function()
      {
        console.log('Error getting launch intent');
      });
    }

```

@ionic/cli-utils : 1.19.0  
ionic (Ionic CLI) : 3.19.0  
global packages:  
cordova (Cordova CLI) : 7.1.0  
local packages:  
@ionic/app-scripts : 3.1.2  
Cordova Platforms : android 6.3.0 browser 5.0.1  
Ionic Framework : ionic-angular 3.9.2  
System:  
Node : v7.9.0  
npm : 4.2.0  
OS : Windows 10

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:59pm UTC](https://forum.ionicframework.com/t/intent-share/114948/4 "2021-07-19T21:59:39Z")

</div>


