Branch.io: Indexing of app dynamic content not having website - branch.io

We wanted to index our app contents (dynamic) in search engines and don't have web application. I got to know about branch Firebase App Indexing feature which seems to be perfect match for us however I am unable to understand following even after going through documentation :
Our content(coupons/offers) keeps changing every minute and hence our data is highly dynamic. How can we index all of our data existing + data which keeps getting added in our DB on regular interval.
How does whole thing works as in do we need to create Branch Universal object & branch links for all the content there in our db & if yes how can we do it incrementally rather than doing it whole thing again.
Do we need to use some API for links/object generation which we can trigger via cron jobs to generate objects & links for all the data there in the DB once daily.
If I understood documentation correctly once links/objects are created branch will automatically create internal sitemap & submit it for indexing to google without us to worrying about it right?

Unfortunately, you cannot index content directly from your DB. The best way to go about this is to have a reference to the content that you'd like to index on the app and create Branch Universal Objects to automatically index the content. For instance, whenever a user applies the offer/coupon, you will have a reference to the coupon/offer on the app and you can create a Branch Universal Object for the coupon/offer to be indexed.
Yes, you will need to create Branch Universal Objects for the Firebase App Indexing to work. One way to do it would be to create Branch Universal Object for every content that you users view. For instance, you can place the code snippet to create Branch Universal Objects on the viewDidLoad() method of offers/coupons page of your app. Thay way, all the offers/coupons viewed by your users will automatically be indexed.
No, we do not provide an API for object generation.
Yes, once you create Branch Universal Objects on your app, your app will be included in our nightly job to automatically generate sitemaps. These sitemaps can be scraped by Google, and all of the included links can then be indexed. Please note that Branch can only submit the sitemap to be scraped by Google. Once the sitemap is submitted, it is really beyond Branch's control to have Google scrape your content.

Related

Telerik Sitefinity Add Property User

In my Sitefinity back-end there is a user section that I would like to add some setting. Something like DisplayLink where it would be a boolean value that I can set on Login of the user. Is there a way I can do that? I am using sf 14 and can't find anyway to add some setting for the user.
I believe this is what you need ...map the view externally and modify.
However keep in mind these views pull in the XHR JSON and you just expose it to the grid... Open your console and view the XHR network traffic to see the JSON object per user. There's a "Comment" field you might be able to leverage, but man the best way would be to just use a ROLE... because they can be filtered, and already come across in that JSON.
Another thing to note, is this is an OLD UI screen and likely will get revamped in the next few releases of Sitefinity rendering everything you're doing pointless... (have to re-do it with likely the new AdminApp Extensions)

Shopify Interact with product page HTML via app

We plan to create a Shopify app but we face some problems to find in documentations how to interact with pages.
I`m not sure we must ask every time users to add codes and etc, so I need to know if I miss something.
I need to interact with the product pages in Shopify from an app.
I search and read all the web for this and everything is how to start but not the actual examples.
I know for the ScriptTags and how to include them but that is.
If someone can give me a simple example of how for example to hide the Buy button and insert something on instead.
I know how to select it with the default theme with JQuery but what about all other themes?
There are two ways to interact with the front page:
1) Inject some code in the page ( the live one )
2) Use ScriptTag as you mentioned.
The code injection script will modify the product template for example and inject your code if you like to do this automatically or you can instruct the user to do so on their own, but if they are not code savvy there might be issues.
In addition this code will live only on the live theme in most cases. And if the user likes to delete your app at a specific time you must be sure to write the logic in such way that it won't affect the site if your app is no longer present ( since it will be really hard to clean up the files once you add the code automatically )
For this approach you will need to use the Asset API.
You will need to get the content of the file with a GET request to the file and make a put request in order to update it.
The better approach is to use ScriptTag API.
This will allow the use of a script file that will be attached on EVERY theme. This will not modify the theme files in any form or shape.
It seems that this is the approach that you are looking for.
Please have in mind that you will be the one hosting the file from your app so pretty much you can write what ever you like there. So if you like to use jQuery you must be sure that the themes have included jQuery or you will have to add the jQuery core code inside your script.
As for how to write a script tag, there is a pretty straightforward documentation here: https://help.shopify.com/en/api/reference/online-store/scripttag#create-2020-01

Create individual pages or dynamically create a page?

I'm unsure of what to do here I would like to ask what process should I use or what are the web standards in accomplishing this.
Scenario:
A User inputs information (e.g. a classified ads post). How should I generate the page of the users post? Should I create a new page with the information provided by the user or should I create just one page that dynamically changes with the content requested?
Generally whats the process I should take?
I hear a lot of talk about using cms, but I think I can create my own simple "cms" that can provide my needs. But I need to know what direction should I use. Creating a NEW PAGE or Creating a SINGLE DYNAMIC PAGE?
I agree that you should be able to create your own "CMS" that will meet your needs. If I understand your question, I would definitely create one page that is dynamically loaded from the database. Think about the server load you could create if you created a new page for every entry. One of the things I advise every client that I develop a website for is to think about what they want their website to be doing for their business in 3 years. I would advise you to think through the same question and I believe you will see why I recommend using a dynamic page.
Good luck with your site.

How to save app instance specific state

I'd like to save the user selection of a Rally artifact so that when the page is reloaded details about that artifact are displayed. There may be several instances of the app on the smae dashboard; whats the best way to uniquely identify a specific instance. I plan to use the preferences api to save the state.
If we're talking about SDK 2.0p3: Each copy of the app has a unique ID that you can use "getAppID()" to find. However, if you use the updateSettingsValues, it will save it uniquely by AppID automatically. Sadly, the updateSettingsValues is app specific only, not user or project specific.

How can I retrieve the HTML to be loaded into a WebView (or WebFrame) from a local persistent store?

So, I have a bunch of HTML is being stored in a SQLite database, and they link back and forth amongst themselves. When a user clicks to follow a link, that request needs to be serviced by pulling the appropriate HTML out of the database. This could result in needing to load images, which are also being stored in the database (this is a future thing; there are no images yet, but I'd like to be able to use them). I've looked through the WebKit documentation, but can't quite figure out how to make this happen. I've mostly looked at WebFrameLoadDelegate and WebResourceLoadDelegate, but I didn't see one that would let me catch the request, grab the appropriate content, and then send that in a response.
Ideas? I'm pretty new to Objective-C and Cocoa, but I think I'm mostly getting the hang of things.
How do the pages which are stored in the database link to each other? It is probably easiest if they use some sort of customer URL scheme to start with.
The approach I would use is to implement
-webView:resource:willSendRequest:redirectResponse:fromDataSource:
in your resource load delegate. If the request is for a resource that is actually located in your database, return a new[1] NSURLRequest which uses a custom URL protocol which points to the database resource:
x-my-scheme:///table/row
[1] Unless you are already linking amongst your resources with the custom URL scheme - then you can skip this step.
Then, implement a custom NSURLProtocol for x-my-scheme which knows how to retrieve the data from the database. The PictureBrowser sample gives a simple example of how this is done.