mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
foreground share recived solved
This commit is contained in:
@@ -21,50 +21,32 @@
|
|||||||
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
|
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:label="@string/title_activity_main"
|
android:label="@string/title_activity_main"
|
||||||
android:launchMode="singleTask"
|
android:launchMode="singleTop"
|
||||||
android:theme="@style/AppTheme.NoActionBarLaunch">
|
android:theme="@style/AppTheme.NoActionBarLaunch">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
<category android:name="android.intent.category.LAUNCHER" />
|
<category android:name="android.intent.category.LAUNCHER" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</activity>
|
|
||||||
|
|
||||||
|
</activity>
|
||||||
|
<!-- Add new One Activity for handle Intent here -->
|
||||||
<activity
|
<activity
|
||||||
android:name=".MainActivity2"
|
android:name="de.mindlib.sendIntent.SendIntentActivity"
|
||||||
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
|
android:label="@string/app_name"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:label="@string/title_activity_main"
|
android:theme="@style/AppTheme.NoActionBar">
|
||||||
android:launchMode="singleTask"
|
<intent-filter>
|
||||||
android:theme="@style/AppTheme.NoActionBarLaunch">
|
<action android:name="android.intent.action.SEND" />
|
||||||
<intent-filter>
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
<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/*" />
|
||||||
|
<data android:mimeType="application/*" />
|
||||||
|
<data android:mimeType="video/*" />
|
||||||
|
</intent-filter>
|
||||||
|
</activity>
|
||||||
|
|
||||||
<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="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
|
<provider
|
||||||
android:name="androidx.core.content.FileProvider"
|
android:name="androidx.core.content.FileProvider"
|
||||||
|
|||||||
Generated
+237
-624
File diff suppressed because it is too large
Load Diff
+2
-2
@@ -106,8 +106,8 @@
|
|||||||
"@ng-bootstrap/ng-bootstrap": "^9.1.2",
|
"@ng-bootstrap/ng-bootstrap": "^9.1.2",
|
||||||
"@ngx-translate/core": "^13.0.0",
|
"@ngx-translate/core": "^13.0.0",
|
||||||
"@pdftron/pdfjs-express": "^8.0.1",
|
"@pdftron/pdfjs-express": "^8.0.1",
|
||||||
"@sentry/angular": "^7.13.0",
|
"@sentry/angular": "7.73.0",
|
||||||
"@sentry/capacitor": "^0.10.1",
|
"@sentry/capacitor": "^0.14.0",
|
||||||
"@teamhive/capacitor-video-recorder": "^5.0.0",
|
"@teamhive/capacitor-video-recorder": "^5.0.0",
|
||||||
"@tinymce/tinymce-angular": "^4.2.4",
|
"@tinymce/tinymce-angular": "^4.2.4",
|
||||||
"@types/jest-environment-puppeteer": "^5.0.3",
|
"@types/jest-environment-puppeteer": "^5.0.3",
|
||||||
|
|||||||
@@ -294,7 +294,8 @@ export class HomePage implements OnInit {
|
|||||||
if (!this.platform.is('desktop')) {
|
if (!this.platform.is('desktop')) {
|
||||||
App.addListener('appStateChange', ({ isActive }) => {
|
App.addListener('appStateChange', ({ isActive }) => {
|
||||||
if (isActive) {
|
if (isActive) {
|
||||||
/* sendIntent.setRouteService(this.router) */
|
sendIntent.setRouteService(this.router)
|
||||||
|
this.checkSendIntentReceived();
|
||||||
console.log('App is in the foreground');
|
console.log('App is in the foreground');
|
||||||
/* this.checkSendIntentReceived() */
|
/* this.checkSendIntentReceived() */
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user