Forum Archive

appex.get_url only works when url is on clipboard

paultopia

From the safari share sheet, the following snippet of code

url = appex.get_url()
print(url)
if url is None:
    url = clipboard.get()
print(url)

if I just run it straight from a web page in mobile safari, it prints None and None

But if I first copy the url to the clipboard, it prints the URL both times.

Is there some weird multithreading thing happening here? Can't figure out why else this would be happening.

omz

Sorry about the late response. Unfortunately, I can't reproduce this here. Could you perhaps open an issue with a few more details (iOS version etc.) in the bug tracker?