Fixes static analyzer error for using mktemp (substituted with mkstemp)
[CB-2159] handleOpenURL not called on iOS

Note that for backgrounded apps, it still needs the explicit JavaScript write in AppDelegate.m (to fix later)