I don't think this fix is valid for other platforms. since you declare functions here, but it's not implemented except Android.