foreground share recived solved

This commit is contained in:
Eudes Inácio
2023-11-16 12:07:22 +01:00
parent 4609c2f240
commit 92cc1841e7
5 changed files with 259 additions and 663 deletions
+10 -28
View File
@@ -21,51 +21,33 @@
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
android:exported="true"
android:label="@string/title_activity_main"
android:launchMode="singleTask"
android:launchMode="singleTop"
android:theme="@style/AppTheme.NoActionBarLaunch">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- Add new One Activity for handle Intent here -->
<activity
android:name=".MainActivity2"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
android:name="de.mindlib.sendIntent.SendIntentActivity"
android:label="@string/app_name"
android:exported="true"
android:label="@string/title_activity_main"
android:launchMode="singleTask"
android:theme="@style/AppTheme.NoActionBarLaunch">
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<!-- Depending on your project, you can add here the type of data you wish to receive -->
<data android:mimeType="text/plain" />
<data android:mimeType="image/*" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="application/*" />
<data android:mimeType="video/*" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND_MULTIPLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
</intent-filter>
</activity>
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.fileprovider"
+237 -624
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -106,8 +106,8 @@
"@ng-bootstrap/ng-bootstrap": "^9.1.2",
"@ngx-translate/core": "^13.0.0",
"@pdftron/pdfjs-express": "^8.0.1",
"@sentry/angular": "^7.13.0",
"@sentry/capacitor": "^0.10.1",
"@sentry/angular": "7.73.0",
"@sentry/capacitor": "^0.14.0",
"@teamhive/capacitor-video-recorder": "^5.0.0",
"@tinymce/tinymce-angular": "^4.2.4",
"@types/jest-environment-puppeteer": "^5.0.3",
+2 -1
View File
@@ -294,7 +294,8 @@ export class HomePage implements OnInit {
if (!this.platform.is('desktop')) {
App.addListener('appStateChange', ({ isActive }) => {
if (isActive) {
/* sendIntent.setRouteService(this.router) */
sendIntent.setRouteService(this.router)
this.checkSendIntentReceived();
console.log('App is in the foreground');
/* this.checkSendIntentReceived() */
} else {