Questions
mailto and tel hrefs not working on iOS
Hello, I have had this issue before, but for Android. You can view the original support question here:
<https://median.co/discuss/6633c718d785ae00519a1877>
When I click phone number links or email links on the emulator, it does not open the phone/mail app. However, it works properly on the Android emulator.
I would think it's the same issue as before if your team can check it out.
Thanks!
Posted by Kyle Kryza 3 months ago
iOS app crashes even when restoring from an back in December 2023.
My app constantly crashes, I get this error message and I don't have this issue when I downloaded my build from 2 days prior. Both on the online simulator or XCode simulator. Even if I store to a working version it continues to crash on iOS (only).
I can't figure out why this build is missing showNavigationItemButtonsAnimated, while my build from 2 days does have it included. I need help to fix this.
Error:````Warning: -\[BETextInput attributedMarkedText] is unimplemented
Reachability Flag Status: -R ------- networkStatusForFlags
Failed to resolve host network app id
got original agent Mozilla/5.0 (iPhone; CPU iPhone OS 17_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148
**_ Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[LEANWebViewController showNavigationItemButtonsAnimated:]: unrecognized selector sent to instance 0x104043600'
_** First throw call stack:
(
0 CoreFoundation 0x00000001804ae0f8 **exceptionPreprocess + 172
1 libobjc.A.dylib 0x0000000180087db4 objc_exception_throw + 56
2 CoreFoundation 0x00000001804c2f48 +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0
3 UIKitCore 0x00000001853fbf54 -[UIResponder doesNotRecognizeSelector:] + 232
4 CoreFoundation 0x00000001804b2248 _**forwarding**_ + 1280
5 CoreFoundation 0x00000001804b456c _CF_forwarding_prep_0 + 92
6 GoNativeCore 0x0000000101dcd858 -[GNJSBridgeHandler handleUrl:query:wvc:] + 8332
7 MyApp 0x0000000100bc7190 -[LEANWebViewController handleJSBridgeFunctions:] + 868
8 MyApp 0x0000000100bc7fe8 -[LEANWebViewController shouldLoadRequest:isMainFrame:isUserAction:hideWebview:sender:] + 3584
9 MyApp 0x0000000100bc49d8 -[LEANWebViewController webView:decidePolicyForNavigationAction:preferences:decisionHandler:] + 644
10 WebKit 0x000000018b406a20 _ZN6WebKit15NavigationState16NavigationClient31decidePolicyForNavigationActionERNS_12WebPageProxyEON3WTF3RefIN3API16NavigationActionENS4_12RawPtrTraitsIS7_EEEEONS5_INS_27WebFramePolicyListenerPro 11 WebKit 0x000000018b57e1bc _ZN6WebKit12WebPageProxy31decidePolicyForNavigationActionEON3WTF3RefINS_15WebProcessProxyENS1_12RawPtrTraitsIS3_EEEENS1_23ObjectIdentifierGenericIN7WebCore18PageIdentifierTypeENS1_38ObjectIdentif 12 WebKit 0x000000018b57cd88 _ZN6WebKit12WebPageProxy42decidePolicyForNavigationActionAsyncSharedEON3WTF3RefINS_15WebProcessProxyENS1_12RawPtrTraitsIS3_EEEENS1_23ObjectIdentifierGenericIN7WebCore18PageIdentifierTypeENS1_38Ob 13 WebKit 0x000000018b57cbac _ZN6WebKit12WebPageProxy36decidePolicyForNavigationActionAsyncEONS_13FrameInfoDataEyONS_20NavigationActionDataES2_NSt3**18optionalIN3WTF23ObjectIdentifierGenericINS_26WebPageProxyIdentifierTypeEN 14 WebKit 0x000000018b9dfa18 _ZN3IPC18handleMessageAsyncIN8Messages12WebPageProxy36DecidePolicyForNavigationActionAsyncEN6WebKit12WebPageProxyES5_FvONS4_13FrameInfoDataEyONS4_20NavigationActionDataES7_NSt3**18optionalIN3WTF2 15 WebKit 0x000000018b9dcb04 _ZN6WebKit12WebPageProxy17didReceiveMessageERN3IPC10ConnectionERNS1_7DecoderE + 304
16 WebKit 0x000000018bae4eb0 _ZN3IPC18MessageReceiverMap15dispatchMessageERNS_10ConnectionERNS_7DecoderE + 252
17 WebKit 0x000000018b5f27a4 _ZN6WebKit15WebProcessProxy17didReceiveMessageERN3IPC10ConnectionERNS1_7DecoderE + 40
18 WebKit 0x000000018bae0fcc _ZN3IPC10Connection15dispatchMessageENSt3**110unique_ptrINS_7DecoderENS1_14default_deleteIS3_EEEE + 732
19 WebKit 0x000000018bae12ec _ZN3IPC10Connection24dispatchIncomingMessagesEv + 468
20 JavaScriptCore 0x00000001953e507c _ZN3WTF7RunLoop11performWorkEv + 176
21 JavaScriptCore 0x00000001953e5dd0 _ZN3WTF7RunLoop11performWorkEPv + 32
22 CoreFoundation 0x000000018040ee48 **CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION** + 24
23 CoreFoundation 0x000000018040ed90 **CFRunLoopDoSource0 + 172
24 CoreFoundation 0x000000018040e500 **CFRunLoopDoSources0 + 232
25 CoreFoundation 0x0000000180408be8 __CFRunLoopRun + 768
26 CoreFoundation 0x00000001804084d4 CFRunLoopRunSpecific + 572
27 GraphicsServices 0x000000018ef2aae4 GSEventRunModal + 160
28 UIKitCore 0x00000001853d0a28 -[UIApplication _run] + 868
29 UIKitCore 0x00000001853d46b0 UIApplicationMain + 124
30 MyApp 0x0000000100bfac94 main + 528
31 dyld 0x0000000100e29544 start_sim + 20
32 ??? 0x0000000100eee0e0 0x0 + 4310622432
33 ??? 0x7779000000000000 0x0 + 8608912162695413760
)
libc++abi: terminating due to uncaught exception of type NSException```
````
Posted by Kellan Stevens 3 months ago
How do I make a background on the main app screen
I can't figure out how to make a background on the main app screen - I have all the navigation bars set the way I want, but I want to put some type of background there with either links or information, but I can't find any setting that allows me to design that inside the pre-build mode on the computer
Posted by Nate Hanson 3 months ago
iOS App crashes when using setItems & setTabs to implement dynamic menus using JavaScript Bridge.
After implementing dynamic menus using setItems(for sidebar navigation) & setTabs(for bottom navigation) with JavaScript Bridge, iOS App crashes though android app works fine.
I checked release notes for iOS and it says that problem resolved back in 2023.
<https://median.co/docs/release-notes-ios-2023>
Here is the output from debug log
***
2024-06-12 07:56:58.541 Median[87738:2552217] Received error while fetching deferred app link Error Domain=ATTrackingManager.AuthorizationStatus must be `authorized` for deferred deep linking to work. Read more at: <https://developer.apple.com/documentation/apptrackingtransparency> Code=-1 "(null)"
2024-06-12 07:56:59.051 Median[87738:2552217] got original agent Mozilla/5.0 (iPhone; CPU iPhone OS 17_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148
**_ Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[LEANWebViewController showNavigationItemButtonsAnimated:]\: unrecognized selector sent to instance 0x158029200'
_** First throw call stack:
(
0 CoreFoundation 0x0000000109eed128 **exceptionPreprocess + 172
1 libobjc.A.dylib 0x000000010727012c objc_exception_throw + 56
2 CoreFoundation 0x0000000109f01f78 +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0
3 UIKitCore 0x000000013aa0c6e0 -[UIResponder doesNotRecognizeSelector:] + 232
4 CoreFoundation 0x0000000109ef1278 _**forwarding\_\_\_ + 1280
5 CoreFoundation 0x0000000109ef359c \_CF_forwarding_prep_0 + 92
6 GoNativeCore 0x0000000104f29858 -[GNJSBridgeHandler handleUrl:query:wvc:] + 8332
```
7 Median 0x00000001045bc14c -[LEANWebViewController handleJSBridgeFunct ions:] + 372
8 Median 0x00000001045d6c10 -[GNJSBridgeInterface userContentController:didReceiveScriptMessage:] + 276
9 WebKit 0x000000010a893c2c _ZN28ScriptMessageHandlerDelegate14didPostMessageERN6WebKit12WebPageProxyEONS0_13FrameInfoDataERN3API12ContentWorldERN7WebCore21SerializedScriptValueE + 224
10 WebKit 0x000000010ac50c00 _ZN6WebKit29WebUserContentControllerProxy14didPostMessageEN3WTF23ObjectIdentifierGenericINS_26WebPageProxyIdentifierTypeENS1_38ObjectIdentifierMainThreadAccessTraitsEEEONS_13FrameInfoDataEyRKNSt3 11 WebKit 0x000000010af84534 _ZN3IPC18handleMessageAsyncIN8Messages29WebUserContentControllerProxy14DidPostMessageEN6WebKit29WebUserContentControllerProxyES5_FvN3WTF23ObjectIdentifierGenericINS4_26WebPageProxyIdentifierTypeE 12 WebKit 0x000000010af84464 _ZN6WebKit29WebUserContentControllerProxy17didReceiveMessageERN3IPC10ConnectionERNS1_ 7DecoderE + 76
13 WebKit 0x000000010afd4714 _ZN3IPC18MessageReceiverMap15dispatchMessageERNS_10ConnectionERNS_7DecoderE + 252
14 WebKit 0x000000010abd3108 _ZN6WebKit15WebProcessProxy17didReceiveMessageERN3IPC10ConnectionERNS1_7DecoderE + 36
15 WebKit 0x000000010afd0924 _ZN3IPC10Connection15dispatchMessageENSt3__110unique_ptrINS_7DecoderENS1_14default_deleteIS3_EEEE + 732
16 WebKit 0x000000010afd0c44 _ZN3IPC10Connection24dispatchIncomingMessagesEv + 468
17 JavaScriptCore 0x00000001193822b4 _ZN3WTF7RunLoop11performWorkEv + 176
18 JavaScriptCore 0x0000000119382fc4 _ZN3WTF7RunLoop11performWorkEPv + 32
19 CoreFoundation 0x0000000109e4df18 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
20 CoreFoundation 0x0000000109e4de60 __CFRunLoopDoSource0 + 172
```
Melibc++abi: terminating due to uncaught exception of type NSException
Can anyone help?
Thanks.
Posted by Avanee 3 months ago
Why is app displayed with native iOS WebView top and bottom bar.
Hi, the login page of our app shows in full screen but as soon as you login to the website and it navigates to the main content it displays the content with the native iOS WebView top and bottom navigation bars. (see image, not our app, but this is what we see, minus the bottom "Done" bar). I feel like this is a setting somewhere I need to change. Any help would be appreciated, thanks.
![](https://global.discourse-cdn.com/auth0/optimized/3X/8/0/80c4dfc1e7e877ddf20f82f9d580562591c1464b_2_235x499.jpeg)
Posted by Jeff 3 months ago
ipa file
Please how can i get the ipa file from the ios source code
Posted by Jesse 3 months ago
[One Signal] Using Median Javascript Bridge in a NextJS app
Hello :)
I'm trying to use the Javascript Bridge to log my users to One Signal in order to retrieve the OneSignalUserId (and enable individual push notifications).
But for the moment, I can't. I'm on NextJS 14, I've installed the Median JavaScript Bridge NPM Package (median-js-bridge), and here's what I'm trying to do:
```typescript typescript
useEffect(() => {
Median.onReady(() => {
Median.onesignal.login('<redacted-user-id>').then((result: CallbackData) => {
if (result.success) {
Median.onesignal.info().then((oneSignalInfo) => {
// ...
// Do something with the oneSignalInfo.oneSignalUserId (store in DB)
// ...
});
}
});
});
});
```
When I deploy this code, nothing happens. It seems that everything in the Median.onReady callback is not executed. **Is this correct in principle?** The use of the NPM package is not well documented.
**Do you have an example of reusable code for this use case?** Or how to use the Npm Package correctly ?
On the configuration side, everything seems correct:
- One Signal is enabled
- Legacy Mode is deactivated
- App Id is correctly set
- Registration and Data Transmission are set to automatic
- Users have been sent to One Signal
Thank you for your support :)
Posted by Alexandre 3 months ago
System Requirements and Device Compatibility
What are the minimum operating system requirements for Android and iOS? Are there any other limitations, such as specific devices that are not supported?
Posted by Rafael 3 months ago
Firebase cloud messaging support
Hello,
We have a web app developed using nextjs 14. I have built a mobile version of my site <https://dudullu.com> using your service. Most of the functions are working properly. However, the firebase cloud messaging based dm and notification services are not working. Our system gets an fcm token after successful login using the codes given below.
Is it possible to solve this problem with your service for both android and ios?
Regards,
<br />
import {getToken, onMessage} from "firebase/messaging";
import {getMessagingInstance} from "@/lib/config/firebase-config";
...
const token = await getToken(getMessagingInstance(), {
vapidKey: 'BPI0EAK...',
});
console.log("Token generated just before permission request - firebase: ", token);
setFcmToken(token);
...
await saveFCMToken({"fcmToken": fcmToken});
....
//get incoming message into store
onMessage(getMessagingInstance(), (payload) => {
console.log("incoming msg:" + JSON.stringify(payload));
...
Posted by ddll 3 months ago
Tapping a Push Notification Issue
Hello I already setup a push notification and was able to pass data thru Additional Data.
I was able to get the data I need when tapping a notification but it will only possible if the app is running in the background. When the app is completely close, I can still get a push notif, taps it but I cant get the data. Seems like the `gonative_onesignal_push_opened`is not triggering if the app is close
Posted by alkein 4 months ago