breautek commented on issue #1159:
URL: https://github.com/apache/cordova-ios/issues/1159#issuecomment-940060140


   I'm failing to understand what you're really trying to do. It sounds like 
there might be a misunderstanding of the Cordova's architecture here.
   
   > I have some logic which is iOS specific but I do not want to write it in 
native source code.
   
   The `exec` function is for communicating with native, if you don't need to 
call onto native, then don't use the function.
   
   If you need platform-specific behaviour, you can use the pre-existing 
`cordova.platform`, or you can use the 
`[cordova-plugin-device](https://cordova.apache.org/docs/en/10.x/reference/cordova-plugin-device/)
 package for better insight of the environment, (e.g. os version) the code is 
currently in to determine when to enter platform-specific logic.
   
   The `exec` method is mainly used by cordova plugins to call onto native side.
   
   Can you explain why this is necessary?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to