Closed tallain-rivaengine closed 4 days ago
Hi @tallain-rivaengine We tried on iOS 17.4 with Outlook 4.2414 and were not able to reproduce the issue. Can you help us with the following queries for further debugging?
Are you able to run any other add-in?
Please capture the logs and send it to us . Instructions on how to collect logs - https://github.com/OfficeDev/office-js/wiki/Collecting-log-files-for-Outlook-Add%E2%80%90ins-issues
Please add a try catch in office.initialize and print the error in catch and let us know the error.
Office.initialize = function (reason) {
try {
console.log(Office.initialize(): Huzzah!
);
}
catch(ex){
console.error(Office.initialize(): Error! ${ex}
);
}
};
Is this add-in published? If not, can you share a manifest which we can use for testing?
Hi @tallain-rivaengine We tried on iOS 17.4 with Outlook 4.2414 and were not able to reproduce the issue. Can you help us with the following queries for further debugging?
- Are you able to run any other add-in?
- Please capture the logs and send it to us . Instructions on how to collect logs - https://github.com/OfficeDev/office-js/wiki/Collecting-log-files-for-Outlook-Add%E2%80%90ins-issues
- Please add a try catch in office.initialize and print the error in catch and let us know the error. Office.initialize = function (reason) { try { console.log(
Office.initialize(): Huzzah!
); } catch(ex){ console.error(Office.initialize(): Error! ${ex}
); } };- Is this add-in published? If not, can you share a manifest which we can use for testing?
I am not sure if this will help things clear, but to give some background and the usage. we are using this as part of the graph non-Sso fallback flow for the mobile device Office.context.ui.displayDialogAsync(myloginUrl) myloginUrl is an action method that gets the graph configuration on the server side and redirects the user to the MS AuthorizationRequestUrl, after the user inputs the credentials in the ms356 login prompt (hosted by the child dialog), it will redirect to a callback URL that contains the auth code, (the callback URL is configured in the Azure App Service), the callback URL will hit our action method, that rendering the view along with the auth result, inside of this view page, there is only the code that does Office initialization and Office.context.ui.messageParent(authResult) we tried to remove Office.context.ui.messageParent(authResult), only keeping Office initialization and logs, as well as the test code, but it never hit the logs. And there is no exception in the parent or any events. This flow worked for 2 years but stopped after IOS was upgraded to 17.4. IOS 15 and all Android platforms work as before. We came out with a workaround that set the auth result in the localstroge. but we found the diag. close() in parent won't close the diag, no exception or event was captured. And this is also happened only in IOS 17.4 and above.
@YmaRivaEngine Can you try one of the display dialog samples for Outlook and let us know if it works on iOS 17.4 for you?
This issue has been automatically marked as stale because it is marked as needing author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your interest in Office Add-ins!
This issue has been closed due to inactivity. Please comment if you still need assistance and we'll re-open the issue.
Provide required information needed to triage your issue
Office.onReady and Office.initialize are unavailable for iOS 17.4 and above
Your Environment
Expected behavior
Calling Office.onReady or Office.initialize should load the OfficeJS library.
Current behavior
When calling Office.onReady or Office.initialize in iOS environments that are using version 17.4 or above, the library is never loaded and no error messages are shown. Our application also hangs and we never finish the call to .onReady or .initialize.
Steps to reproduce
Link to live example(s)
N/A
Provide additional details
We have tried initializing Office with the Office.onReady and Office.initialize methods. The code snippets we have tried are below:
Office.onReady
Office.initialize
Context
All we are trying to do is load the Office library. When we run the exact same code snippets with mobile devices using Android or iOS versions before 17.4, the library is loaded without issue. A summary of the iOS and Outlook versions we have tried is below:
Please note: We have also tried enabling/disabling the 'Prevent Cross-Site Tracking' and the 'Block Pop-ups' options in the Safari browser, to no effect.
Useful logs
I've attached two screenshots of our logging of the above two calls from the code snippets. You can see that we are getting the logs before we call .onReady or .initialize, but no logs occur afterwards.
Office.onReady
Office.initialize