Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crashes when switching between Sliding Tabs by clicking the tabs (not swiping) #91

Open
vishu39 opened this issue Mar 6, 2024 · 1 comment

Comments

@vishu39
Copy link

vishu39 commented Mar 6, 2024

I am encountering a critical issue with the send intent functionality in my Ionic project. The problem is specific to Android devices. Although the functionality operates seamlessly on iOS, on Android, after sharing data and swiping up to access files or images, the app redirects to the previous URL or reloads the current page
Here is my AndroidManifest.xml activity code for intent

<activity 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:theme="@style/AppTheme.NoActionBar">
    <intent-filter>
        <action android:name="android.intent.action.SEND" />
          <action android:name="android.intent.action.SEND_MULTIPLE" />
        <category android:name="android.intent.category.DEFAULT" />
        <data android:mimeType="image/*" />
        <data android:mimeType="application/*" />
        <data android:mimeType="video/*" />
        <data android:mimeType="audio/*" />
    </intent-filter>
@carsten-klaffke
Copy link
Owner

If i understand you correctly, you are talking about open about the app selection menu by swiping up. The SendIntentActivity is a separate activity, so it opens as an extra app instance. If you open the app selection menu, you leave the context of this instance and therefore it closes. This is configured in SendIntentActivity::onStop. If you want to access files or images, you should do that within the instance and not leave the context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants