Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Trigger.io Support? #74

Closed
Mike-E-angelo opened this issue Feb 2, 2018 · 7 comments
Closed

Question: Trigger.io Support? #74

Mike-E-angelo opened this issue Feb 2, 2018 · 7 comments
Labels

Comments

@Mike-E-angelo
Copy link

Pretty nifty project here. 😄

Curious if you know if this integrates well with Trigger.io:
https://trigger.io/

Or is there another/known/preferred method for running this in a native context?

@praeclarum
Copy link
Owner

This is my first exposure to Trigger. Can you give me some context as to how an app would be architected?

@Mike-E-angelo
Copy link
Author

I just learned of it as well. 😆 It's basically the same as PhoneGap, and allows you to package a web application as a native application and gives you access to native resources (camera, GPS, etc.).

In your readme it states that Ooui can run "everywhere", but you really mean within a web context, correct? Is there a way to run Ooui in a native context as well?

@praeclarum
Copy link
Owner

Ooui can run anywhere .NET can - that's it's only limitation. Since Trigger is JavaScript based, getting the two to work together would not be very sustainable. I'm going to close this because I doubt I'll implement it. But thanks for the pointer, I'll keep an eye on it!

@Mike-E-angelo
Copy link
Author

OK cool. I am actually interested in exploring this. :) I will contact the Trigger team to see if it's possible to somehow host an HTTP listener locally (along with Xamarin-compiled artifacts).

@Mike-E-angelo
Copy link
Author

Mike-E-angelo commented Feb 3, 2018

WOW... this is actually way easier than I thought. There is no need to use Trigger/PhoneApp/Cordova for packaging/deployment. I simply created a native project with a simple Xamarin Forms with a WebView as such:
https://github.com/Mike-EEE/Ooui/blob/master/PlatformSamples/Native/Native/MainPage.xaml#L8

And then a publish call here as such:
https://github.com/Mike-EEE/Ooui/blob/master/PlatformSamples/Native/Native.UWP/MainPage.xaml.cs#L11

And whalah, instant magic. 😄

I think this is a powerful example as it demonstrates your awesome library here working within a native context. Let me know if it makes sense to work with you on a PR to make this happen (and/or if we should open a new ticket).

BTW, this technically satisfies the requirements for a very popular ask here:
https://visualstudio.uservoice.com/forums/121579-visual-studio-2015/suggestions/10027638-create-a-ubiquitous-net-client-application-develo

The only thing we'd have to do is flesh out controls and introduce data-binding, but this is one step closer for some cooooooool stuff in the foreseeable future. Oh yeah, we also have to deal with CSS, but at this point that is a concession I am willing to make. 😉

@Mike-E-angelo
Copy link
Author

FWIW, I am running into confusion whether or not this is actually possible in a deployed hosted store environment. As per above it appears to run just fine in a local development UWP environment, but that doesn't verify that it actually works when deployed to the actual UWP store, or Apple or Droid's for that matter.

I have a question outstanding here on Xamarin's forum if anyone can please clear up my confusion:
https://forums.xamarin.com/discussion/124126/does-httplistener-work-in-native-store-hosted-environments/p1

Thank you for any assistance you can provide. 😄

@birbilis
Copy link

birbilis commented Apr 14, 2018

Windows Store also supports Hosted Web Apps, where you just have an empty project and the info for the webpage to show is in the manifest (set in the properties of the project). In latest Visual Studio it is very straightforward, I think you just use the respective project template

e.g. see a UWP web page wrapper generated with an older version of Manifold.js (now called PWABuilder - https://www.pwabuilder.com/) - it is practically empty
https://github.com/Zoomicon/ClassProjectAssistant/tree/master/bubble_hosted_uwp

Also for other platforms, could use Manifold.js to make a hosted web app, however Xamarin (or Delphi or other IDE that allows you to make a native app that just contains a webview) is a good option too. Note that the Hosted Web Apps in UWP can interact with the system too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants