Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit c13c811

Browse files
Merge pull request #7547 from livecodepanos/bugfix-23150
[[ Bug 23150 ]] Ensure urlWakeUp is sent in any case
2 parents 0faba20 + 739befd commit c13c811

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docs/notes/bugfix-23150.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Ensure `urlWakeUp` message is sent when `LSSupportsOpeningDocumentsInPlace` is set to `true` in `Info.plist`

engine/src/mbliphoneapp.mm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -558,14 +558,14 @@ - (void)application:(UIApplication*)p_application didFailToRegisterForRemoteNoti
558558

559559
// Check if we have received a custom URL
560560
// This handler is called at runtime, for example if the application tries to launch itself
561-
- (BOOL)application:(UIApplication *)p_application openURL:(NSURL*)p_url sourceApplication:(NSString *)p_source_application annotation:(id)p_annotation
561+
- (BOOL)application:(UIApplication *)p_application openURL:(NSURL *)p_url options:(NSDictionary<UIApplicationOpenURLOptionsKey, id> *)p_options
562562
{
563563
BOOL t_result = NO;
564564
if (p_url != nil)
565565
{
566566
MCAutoStringRef t_url_text;
567-
/* UNCHECKED */ MCStringCreateWithCFStringRef((CFStringRef)[p_url absoluteString], &t_url_text);
568-
MCValueAssign(m_launch_url, *t_url_text);
567+
/* UNCHECKED */ MCStringCreateWithCFStringRef((CFStringRef)[p_url absoluteString], &t_url_text);
568+
MCValueAssign(m_launch_url, *t_url_text);
569569
if (m_did_become_active)
570570
MCNotificationPostUrlWakeUp(m_launch_url);
571571
t_result = YES;

0 commit comments

Comments
 (0)