-
Greetings, I have installed Shiny 2.4.1.2971 via NUGET in Visual Studio 2022, but it doesn't work: public override void ConfigureServices(IServiceCollection services, IPlatform platform) Error: IServiceCollection does not contain a definition for UseJobs Am I doing something wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 2 replies
-
You have to install Shiny.Jobs & Shiny.Notifications - Shiny doesn't include all of the packages. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer, now it's working (sort of) I'm trying to follow the
documentation at https://shinylib.net/jobs/getting-started (The JOBs part)
but in the example it says CrossJobs.Current.Schedule(job); the current
version of the library doesn't have CrossJobs.
I'm trying to implement a simple job in my app (query for update to a
webservice every 10 minutes), I'm stuck. Could you point me to a simple
example to achieve this? Thanks in advance for your help.
El vie, 7 ene 2022 a las 14:39, Allan Ritchie ***@***.***>)
escribió:
… You have to install Shiny.Jobs & Shiny.Notifications - Shiny doesn't
include all of the packages.
—
Reply to this email directly, view it on GitHub
<#873 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOXNV4WV5OYC4BDJ377XG2TUU46OJANCNFSM5LPOG5BA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
The documentation is not up to date because I simply haven't bothered to keep up with them. You should also note that jobs aren't guaranteed to run on a scheduled time. They are periodic. There are samples located at https://github.com/shinyorg/samples as listed on the readme of this repo. Please note that this is not a product or a general support forum. It is recommended you look through the source code |
Beta Was this translation helpful? Give feedback.
-
Allan, thanks for your help, I managed to create the jobs and the app is
working great. Great Job with the Plugin.
El dom, 9 ene 2022 a las 11:36, Allan Ritchie ***@***.***>)
escribió:
… The documentation is not up to date because I simply haven't bothered to
keep up with them. You should also note that jobs aren't guaranteed to run
on a scheduled time. They are periodic.
There are samples located at https://github.com/shinyorg/samples as
listed on the readme of this repo.
Please note that this is not a product or a general support forum. It is
recommended you look through the source code
—
Reply to this email directly, view it on GitHub
<#873 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOXNV4XBFABEMSM4ECBQ4YDUVG2STANCNFSM5LPOG5BA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Greetings Allan, sorry to bother you, one last question, is it mandatory to
put a Task.Delay inside the *Task Run* of the job?. Thanks in advance for
your answer.
El lun, 10 ene 2022 a las 16:39, Boris Ortega Lescano (<
***@***.***>) escribió:
… Allan, thanks for your help, I managed to create the jobs and the app is
working great. Great Job with the Plugin.
El dom, 9 ene 2022 a las 11:36, Allan Ritchie ***@***.***>)
escribió:
> The documentation is not up to date because I simply haven't bothered to
> keep up with them. You should also note that jobs aren't guaranteed to run
> on a scheduled time. They are periodic.
>
> There are samples located at https://github.com/shinyorg/samples as
> listed on the readme of this repo.
>
> Please note that this is not a product or a general support forum. It is
> recommended you look through the source code
>
> —
> Reply to this email directly, view it on GitHub
> <#873 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AOXNV4XBFABEMSM4ECBQ4YDUVG2STANCNFSM5LPOG5BA>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android
> <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
>
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
-
Hello Allan, sorry to bother you again, the project works great with
ANDROID (jobs run periodically), but in IOS the job never starts (not even
once), no errors, the Stratup.cs loads fine:
AppDelegate.cs:
[assembly: ShinyApplication(
ShinyStartupTypeName = "ASPAI.Startup",
XamarinFormsAppTypeName = "ASPAI.App"
)]
Testing in IPhoneSimulator
Everything is configured at Info.plist
<https://github.com/shinyorg/samples/blob/main/Jobs/Sample.iOS/Info.plist>
and Entitlements.plist
<https://github.com/shinyorg/samples/blob/main/Jobs/Sample.iOS/Entitlements.plist>
according to
the examples at github. Is there something I'm mising on IOS, thanks in
advance for your help.
El sáb, 15 ene 2022 a las 10:36, Allan Ritchie ***@***.***>)
escribió:
… No
—
Reply to this email directly, view it on GitHub
<#873 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOXNV4UQN6KA7WATW5P6XKLUWGIBBANCNFSM5LPOG5BA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
You have to install Shiny.Jobs & Shiny.Notifications - Shiny doesn't include all of the packages.