Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/pages/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@
await AppLauncher.openUrl({ url: '' });
};

const getAppLanguage = async () => {
const info = await App.getAppLanguage();

Check failure on line 122 in src/pages/App.tsx

View workflow job for this annotation

GitHub Actions / Build and Test

Property 'getAppLanguage' does not exist on type 'AppPlugin'.
setAppInfoJson(JSON.stringify(info, null, 2));
};

useIonViewDidLeave(() => {
stateChangeHandler.remove();
urlOpenHandler.remove();
Expand Down Expand Up @@ -160,6 +165,9 @@
<IonButton expand="block" onClick={failCall}>
Test Failing Call
</IonButton>
<IonButton expand="block" onClick={getAppLanguage}>
Get App Language
</IonButton>
<IonButton expand="block" href="https://flems.io/#0=N4IgzgpgNhDGAuEAmIBcIB0ALeBbKIANCAGYCWMYaA2qAHYCGuEamO+RIsA9nYn6wA8WAIwA+ADp1BDAARYAThBIBeCSDJ8IfVAHpdWbswDEASS18A3GFhYIzFT1wZYDAA4NYZeNwUArMAx3NwxEMHhgyw9YAGsGAHMIRyMXd09vXwCgtxCwiJzLT3gyXhUGOiQFbjIkDE1+eCCEEroMADVTAFEAdUttJEt1STpZWQAVCHDUWQB5N21ZAEEABWWpQV0GYY3RMU5IGGbeKnQAJlQRADYQAF9CeiYWdAwAzh4LeCE5RWU1LhTXNEMv5AsFQpN8m49AYjBAAPwkKq4FRICAQNxQTQxIZjToAZTGGy2+2gcGKx1YAAZUJcAOy3e4gRjMVguMBUYjvBqsW4AXRuQA">
{/* If the link above ever expires, this is the HTML to test opening an intent for this app.
<h1>
Expand Down
Loading